Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Perl prints only one line when directed to a file but print to a screen works

by hdb (Parson)
on Jun 30, 2013 at 17:17 UTC ( #1041624=note: print w/ replies, xml ) Need Help??


in reply to Perl prints only one line when directed to a file but print to a screen works

As you overwrite your file for every iteration of your outer loop, you might want to either open it outside the loop or open it for appending (in contrast to the name...).




Comment on Re: Perl prints only one line when directed to a file but print to a screen works
Download Code
Re^2: Perl prints only one line when directed to a file but print to a screen works
by vlad3848 (Acolyte) on Jun 30, 2013 at 17:51 UTC
    That solved it! Thank you very much!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2014-08-01 16:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (28 votes), past polls