itzMe has asked for the wisdom of the Perl Monks concerning the following question:
when i read everything once i get all the details and then am not able 2 read it again. code used isabc deg hij
This does not print anything. Can u pls suggest?Have I done some mistake?open(file1,"sample.txt"); print(<file1>); $line1=<file>; print($line1);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading from a file
by broquaint (Abbot) on Aug 26, 2003 at 10:13 UTC | |
|
Re: Reading from a file
by CombatSquirrel (Hermit) on Aug 26, 2003 at 09:59 UTC | |
|
Re: Reading from a file
by thinker (Parson) on Aug 26, 2003 at 09:56 UTC | |
|
Re: Reading from a file
by castaway (Parson) on Aug 26, 2003 at 10:01 UTC | |
|
Re: Reading from a file
by bradcathey (Prior) on Aug 26, 2003 at 15:26 UTC | |
|
Re: Reading from a file
by Theo (Priest) on Aug 26, 2003 at 21:16 UTC |