loris has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I assume I am being dopey, but I don't understand why this
my $fh; open($fh,'<',$file); while (<$fh>) { print "line: $_\n"; }
is OK, whereas this
my $fh; $fh = cacheout('<',$file); while (<$fh>) { print "line: $_\n"; }
tells me
readline() on unopened filehandle 1 at ... readline() on unopened filehandle 2 at ... readline() on unopened filehandle 3 at ... ...
Can someone please enlighten me?
Update: I'm using Perl 5.8.0 on solaris.
Thanks,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: FileCache Usage
by Corion (Patriarch) on Feb 09, 2007 at 09:48 UTC | |
by loris (Hermit) on Feb 09, 2007 at 10:05 UTC | |
|
Re: FileCache Usage
by PreferredUserName (Pilgrim) on Feb 09, 2007 at 16:13 UTC |