Skip to content

Instantly share code, notes, and snippets.

@nothingmuch
Created October 7, 2009 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nothingmuch/203984 to your computer and use it in GitHub Desktop.
Save nothingmuch/203984 to your computer and use it in GitHub Desktop.
• [syeeda:~] nothingmuch % perl -e 'open my $fh, "<", "/tmp/foo"; warn *{$fh}{IO}'
IO::Handle=IO(0x1008034c8) at -e line 1.
• [syeeda:~] nothingmuch % perl -MIO::Handle -e 'open my $fh, "<", "/tmp/foo"; warn *{$fh}{IO}'
IO::Handle=IO(0x1008034f8) at -e line 1.
• [syeeda:~] nothingmuch % perl -MFileHandle -e 'open my $fh, "<", "/tmp/foo"; warn *{$fh}{IO}'
FileHandle=IO(0x1008034f8) at -e line 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment