Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Changing the output filehandle while iterating input files.

by betterworld (Deacon)
on Sep 21, 2008 at 10:52 UTC ( #712836=note: print w/ replies, xml ) Need Help??


in reply to Re: Changing the output filehandle while iterating input files.
in thread Changing the output filehandle while iterating input files.

In your example, "out*" will be the original file, while in the OP's code, "out*" will be the new file. Otherwise they are equivalent.

Update: And please note that errors are not checked in either case. Imho a big problem with the "-p" switch is that it does not check whether writing and closing is successful.


Comment on Re^2: Changing the output filehandle while iterating input files.

Log In?
Username:
Password:

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

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

    For retirement, I am banking on:










    Results (125 votes), past polls