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

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

by betterworld (Curate)
on Sep 21, 2008 at 10:52 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://712836]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found