Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
only seems to read the first line. I know I can read it into an array, but I don't want that...open PAGE, '<', $success or die "Can't open $success : $!"; flock (PAGE, 1) or die "Can't lock $success for reading: $!"; my $page = <PAGE>; close PAGE;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: read file into scalar
by Limbic~Region (Chancellor) on Oct 28, 2006 at 15:21 UTC | |
Re: read file into scalar
by davido (Cardinal) on Oct 28, 2006 at 15:33 UTC | |
Re: read file into scalar
by imp (Priest) on Oct 28, 2006 at 15:22 UTC | |
Re: read file into scalar
by jdporter (Paladin) on Oct 28, 2006 at 15:46 UTC | |
Re: read file into scalar
by arkturuz (Curate) on Oct 28, 2006 at 18:59 UTC | |
by mickeyn (Priest) on Oct 29, 2006 at 11:35 UTC | |
by arkturuz (Curate) on Oct 30, 2006 at 11:02 UTC | |
by ysth (Canon) on Oct 30, 2006 at 18:43 UTC | |
Re: read file into scalar
by tsee (Curate) on Oct 28, 2006 at 18:46 UTC |