work for me, so ARGV is the answer.use strict; use warnings; sub cat_all { my $fh = shift; print while <$fh>; } cat_all \*ARGV;
BTW I found this by inspecting the output of perl -MData::Dumper -wle 'print Dumper [ keys %::]'. Looking at perlvar also helped.
In reply to Re: Referencing the null file handle, <>
by moritz
in thread Referencing the null file handle, <>
by pc88mxer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |