in reply to Re: Scope of $/
in thread Scope of $/
use strict; use reader; #$/= "\n\n\n"; while(do{local $/="\n\n\n"; $_=<>}){ my ($filename)=/^(\S+)/; my $text=reader::firstline($filename); }
Update: Commented out original definition of $/.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Scope of $/
by NetWallah (Canon) on May 26, 2016 at 13:48 UTC |