##
if(match)
{
do_this();
}
else
{
do_that();
}
####
if(match){
do_this();
} else {
do_that();
}
####
while(){
chomp;
next unless /\w/;
s/foo/bar/g;
say;
}
while(my $line = ){
chomp $line;
next unless $line =~ /\w/;
$line =~ s/foo/bar/g;
say $line;
}
####
do_this(), do_that if $match;
do_this($_) for @items if $match;
####
do_this() unless $found;
# surely you're not suggesting this is better, are you?
do_this if not $found;