in reply to FYI, changing $/ "on the fly"
open(FILE, "<file1.txt") || die $!; { local $/ = "****"; my $a = <FILE>; chomp $a; push @array,$a; } { local $/= "####"; while (<FILE>) { chomp $_; push (@array, $_); } close (FILE); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Fyi
by maddfisherman (Sexton) on Aug 23, 2001 at 22:03 UTC | |
by Cine (Friar) on Aug 23, 2001 at 22:07 UTC | |
|