in reply to Re: A Reg Exp Question
in thread A Reg Exp Question

Of course, good programming style dictates that $/ should be made local in a block, so you don't trample any exterior variation:
{ open(IN,"somefile.pl"); local $/; undef $/; $string = <IN>; } #previous version of $/ is now restored

Replies are listed 'Best First'.
RE: RE:(2) A Reg Exp Question
by maverick (Curate) on Jun 28, 2000 at 21:14 UTC
    oh yeah, sorry. :)
    I also realized that my expession doesn't handle file handles (props to ZZamboni)
    I'll fix both here shortly.

    /\/\averick