Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The output is 01234. Where is the preceding 0 coming from? TIA.#!/usr/bin/perl open (LASTCOUNT, "/tmp/count.out") || die "cannot open the file"; $line = <LASTCOUNT>; close(LASTCOUNT); print $line;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Zero being added when reading from filehandle?
by Eimi Metamorphoumai (Deacon) on Dec 14, 2004 at 16:30 UTC | |
|
Re: Zero being added when reading from filehandle?
by davido (Cardinal) on Dec 14, 2004 at 16:30 UTC | |
|
Re: Zero being added when reading from filehandle?
by ikegami (Patriarch) on Dec 14, 2004 at 17:05 UTC | |
|
Re: Zero being added when reading from filehandle?
by sgifford (Prior) on Dec 14, 2004 at 19:07 UTC |