Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^5: How to create an output file for each input file

by steph_bow (Pilgrim)
on Apr 03, 2008 at 10:41 UTC ( [id://678139]=note: print w/replies, xml ) Need Help??


in reply to Re^4: How to create an output file for each input file
in thread How to create an output file for each input file

Hope it helps !

## loop through the TAB files### foreach $file (@files) { chomp; # just add $file so for each $file , there is a $verifile created $verifile = $file.$outbox.$yr.$mn.$day.$hr.$min.$sec."_FIXED.TAB"; open(OUTPUT_FILE, ">>$verifile")||die "Can't open file: $!"; #string manipulation will go here close OUTPUT_FILE; }# end for each file

Replies are listed 'Best First'.
Re^6: How to create an output file for each input file
by Anonymous Monk on Apr 03, 2008 at 13:54 UTC
    Thanks, steph_bow! For some reason I didn't see your post until after I posted the solution you had already come up with. Yes, because I didn't add the $file variable to my output file, the second unique file was never created. Now it does! I posted my final code in another reply... I think because I'm anonymous or something I don't get to see the whole thread or something? Means I should register, eh? Thanks, everyone, you've been very helpful!

      I think you mus modify "chosen depth" but I do not know how to do this. See ya !

Log In?
Username:
Password:

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

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

    No recent polls found