Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Calling functions

by indigo (Scribe)
on Mar 23, 2001 at 02:51 UTC ( #66505=note: print w/replies, xml ) Need Help??


in reply to Re: Calling functions
in thread Calling functions

I don't know exactly what your code if doing, but is gen_stats is trying to read a file split_logfile is creating, you might be running into a buffering problem.

Try putting this line at the beginning of split_logfile:

local $| = 1;

This will turn autoflush on, which means Perl will output to a file immediately after a print, rathering than saving outputs up and doing them all at once.

Replies are listed 'Best First'.
(tye)Re2: Calling functions
by tye (Sage) on Mar 23, 2001 at 03:09 UTC

    That would only autoflush STDOUT, which probably isn't the problem in this case.

            - tye (but my friends call me "Tye")

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2020-10-29 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (270 votes). Check out past polls.

    Notices?