Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by hdb (Prior)
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 surveying the Monastery: (6)
As of 2014-09-18 02:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (104 votes), past polls