open(FILE, "<file1.txt") || die $!; { local $/ = "****"; my $a = <FILE>; chomp $a; push @array,$a; } { local $/= "####"; while (<FILE>) { chomp $_; push (@array, $_); } close (FILE); }
In reply to Re: FYI
by Cine
in thread FYI, changing $/ "on the fly"
by maddfisherman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |