Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How do I read the files in @ARGV one by one

by merlyn (Sage)
on Mar 19, 2001 at 23:59 UTC ( #65523=note: print w/ replies, xml ) Need Help??


in reply to How do I read the files in @ARGV one by one

OK, one other twisted way:

my @data = do { my @copy = @ARGV; local $/; map { shift @copy, map /(.*\n?)/g, $_ } <>; };

-- Randal L. Schwartz, Perl hacker


Comment on Re: How do I read the files in @ARGV one by one
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (13)
As of 2014-09-23 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (213 votes), past polls