Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Lazy Coderby tadman (Prior) |
on Apr 13, 2002 at 00:10 UTC ( [id://158713]=note: print w/replies, xml ) | Need Help?? |
Lazy in a good way:
my $input = join ('', <>);Or, if you prefer named arguments: my $input = open (IN, $ARGV[0]) && join ('', <IN>);Don't forget that it's @ARGV and not @argv. If you're using this as a CGI application, it virtually, but not entirely, goes without saying: use CGI;
In Section
Seekers of Perl Wisdom
|
|