in reply to Parsing multiline string line by line
$/ = undef;#set input record seperator to null[default \n] open("FIN","<raja.txt") or die "cant open :$!\n"; $content = <FIN>; #Whole file content in a single scalar variable close(FIN); foreach $line (split /\n/ ,$content) { print $line; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parsing multiline string line by line
by flamey (Scribe) on Feb 19, 2009 at 15:05 UTC | |
|
Re^2: Parsing multiline string line by line
by Jayson (Novice) on Feb 19, 2009 at 19:54 UTC | |
by hbm (Hermit) on Feb 19, 2009 at 21:36 UTC | |
by Jayson (Novice) on Feb 20, 2009 at 14:35 UTC |