in reply to Re: Scope of $/
in thread Scope of $/

A truly minimal scope solves the problem.
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 $/.

Bill

Replies are listed 'Best First'.
Re^3: Scope of $/
by NetWallah (Canon) on May 26, 2016 at 13:48 UTC
    Applause, for a truly elegant solution !

    I wish I had thought of that.

            This is not an optical illusion, it just looks like one.