in reply to Re^3: restrict use of regex module in script
in thread restrict use of regex module in script

When a special variable is intended to apply to only one operation, I prefer to make that explicit by limiting the scope even more.
my $contents = do{local $/; <$fh>};
Bill

Replies are listed 'Best First'.
Re^5: restrict use of regex module in script
by pmpmmpmp (Novice) on Apr 11, 2017 at 21:52 UTC

    Thank you stevieb and Bill for your examples and explanation. They have been very helpful. ( I like the seek function ! )