Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Lazy Coder

by tadman (Prior)
on Apr 13, 2002 at 00:10 UTC ( [id://158713]=note: print w/replies, xml ) Need Help??


in reply to Re: Lazy Coder
in thread Join a file piped to a perl script

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;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://158713]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-19 07:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found