You have to make sure $cat2 is defined outside of the block, though, otherwise it'll go out of scope when you want to use it.my $cat2; { open(FH, 'data.txt') || die "Some error: $!"; local $/; $cat2 = <FH>; close FH; }
In reply to RE: RE: Re: Weird printing
by chromatic
in thread Weird printing
by damian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |