Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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.

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?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2015-11-30 07:35 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (765 votes), past polls