- or download this
while (<>) {
# do something with $_ here
}
- or download this
unshift(@ARGV, '-') unless @ARGV;
while ($ARGV = shift) {
...
# do something with $_
}
}
- or download this
%hash = ();
{
...
$hash { $keys [$c] } = $values [ $c ];
}
}
- or download this
@hash { qw (a, b, c) } = 1..3;
- or download this
{ # block for local
local $/ = ''; # paragraph mode
...
} # end of sub
);
} # end of "local $/" block