sub firstline { use autodie qw/ open /; local $/ = "\n"; open my($fh),'<',$_[0]; return scalar <$fh>; } [download]
In reply to Re: Scope of $/ by Anonymous Monk in thread Scope of $/ by agarrubio