Skip to content

Instantly share code, notes, and snippets.

@shibayu36
Created March 30, 2012 00:19
Show Gist options
  • Save shibayu36/2245197 to your computer and use it in GitHub Desktop.
Save shibayu36/2245197 to your computer and use it in GitHub Desktop.
#!perl
use strict;
use warnings;
use IO::File;
my $fh = IO::File->new;
if ($fh->open("2012-03-30-091435.pl")) {
warn $fh->fileno;
$fh->close;
}
warn fileno(STDIN);
warn fileno(STDOUT);
warn fileno(STDERR);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment