in reply to Re: Scope Difference
in thread I need a simple explantion of the difference between my() and local()

By narrowing the block that holds the local, you can further contain the effect.
open(FILE, "<$foo") or die "$foo: $!"; my $file = do { local $/; <FILE> }; close(FILE);