Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Can someone elaborate as to why this isn't working

by serf (Chaplain)
on Jan 01, 2006 at 13:22 UTC ( #520235=note: print w/ replies, xml ) Need Help??


in reply to Can someone elaborate as to why this isn't working

Are you doing a

close(FILE1);
after you have finished writing to the file?

I'm not familiar with activeperl - but is there a chance it's not flushing the output to the file?

(Although I would *expect* Perl to cleanly flush to and then close the filehandle when the script ends!?)


Comment on Re: Can someone elaborate as to why this isn't working
Download Code
Re^2: Can someone elaborate as to why this isn't working
by vek (Prior) on Jan 02, 2006 at 08:28 UTC

    serf, good guess but activeperl behaves no differently than Perl on any other box in this regard. The buffer will be flushed and the filehandle closed when the program ends.

    -- vek --

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2014-07-13 00:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (243 votes), past polls