Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: read an integer from a file

by Boldra (Deacon)
on Jun 15, 2010 at 12:19 UTC ( #844847=note: print w/ replies, xml ) Need Help??


in reply to read an integer from a file

Try changing the print $a to print STDERR $a and looking in the log file.

As it's written it looks like $a is going to be the first thing sent back to the browser, making further headers useless.

Update
And use IO::All, it's just so cool.

open (MYFILE, "status2.txt"); $a=<MYFILE>; print "$a"; # can be written as use IO::All; $a < io("status2.txt"); print "$a";


- Boldra


Comment on Re: read an integer from a file
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2014-09-23 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (220 votes), past polls