Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

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


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

@ARGV = $_, push @data, $_, <> for @{[@ARGV]};
Hmm. There was some other clever trick to dup a list too, but I can't recall now.

-- Randal L. Schwartz, Perl hacker


update: Yeah, it's
@ARGV = $_, push @data, $_, <> for map $_, @ARGV;


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2015-07-02 06:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (29 votes), past polls