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

open, sleep, & print together cause an error

by zeno (Friar)
on Feb 10, 2001 at 04:03 UTC ( #57525=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
      print LOG (localtime).": something\n";
      sleep(30); # if I comment this, print works
    }
    
  2. or download this
    use strict;
    use warnings;
    ...
      sleep(30);
    }
    close LOG or die "can't close log: $!";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://57525]
Approved by root
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2017-04-25 08:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (449 votes). Check out past polls.