- or download this
{
my $tempvar = somefunc();
# do something with $tempvar
}
# $tempvar no longer exists here.
- or download this
{
local(*INPUT, $/);
...
$var = <INPUT>;
}
# $/ is set back to it's original value here.
- or download this
while (<FH>) {
next if /^#/; # Skip comments
# now do something with $_
}