- or download this
$x=3; $y=4; $z = 5;
# or maybe better
($x, $y, $z) = (3, 4, 5);
- or download this
if(match)
{
do_this();
...
{
do_that();
}
- or download this
if(match){
do_this();
} else {
do_that();
}
- or download this
while(<DATA>){
chomp;
...
$line =~ s/foo/bar/g;
say $line;
}
- or download this
do_this(), do_that if $match;
do_this($_) for @items if $match;
- or download this
do_this() unless $found;
# surely you're not suggesting this is better, are you?
do_this if not $found;