MAIN:{ my $fn="myfile"; print readfile($fn); } sub readfile { my $out=""; open(FH, $fn) or die "Can't read $fn"; $out .= $_ while(<FH>); return $out; }
In reply to Re: Improving lexical scoping outside subs
by fletcher_the_dog
in thread Improving lexical scoping outside subs
by toma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |