Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2015-07-06 08:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls