in reply to Re: Scope Differencein thread I need a simple explantion of the difference between my() and local()
open(FILE, "<$foo") or die "$foo: $!"; my $file = do { local $/; <FILE> }; close(FILE); [download]