- or download this
while (@array) {
my $val = shift @array;
# do something with $val
}
- or download this
while (my $val = shift @array) {
# ...
}
- or download this
if (length $string) {
# ...
}
- or download this
open my $fh, "<", $file or die "failed to open $file $!";
- or download this
$error_count++ and next if some_condition();
- or download this
++$error_count and next if some_condition();