Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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?
[talexb]: Hmm .. fascinated to learn that there's no INT function in SQL Server, only FLOOR and CEIL. #interestingjobint erviewquestion
[Corion]: talexb: How about convert( decimal( 10,0 ), EXPR )) ? ;-D
[Corion]: On the upside, $work has published two openings for cow-orkers; we'll see whether someone wants to work here ;)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2017-08-16 13:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (265 votes). Check out past polls.

    Notices?