Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 chanting in the Monastery: (6)
As of 2014-12-18 00:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (41 votes), past polls