Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: concatenating text files before reading

by Eily (Monsignor)
on Sep 05, 2013 at 13:11 UTC ( [id://1052563]=note: print w/replies, xml ) Need Help??


in reply to Re^3: concatenating text files before reading
in thread concatenating text files before reading

The while (<>) can be tricky when used with initial @ARGV (script parameters), but in this case, as @ARGV is the result of a glob, most of these problems are avoided. There is however something you should check: that @ARGV is not empty after the glob operation, or <> will read in the standard input. localising the change to @ARGV could avoid some trouble as well.

There's also taint mode to play it more secure.

Log In?
Username:
Password:

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

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

    No recent polls found