- or download this
if (!open(my $fh, '<', $qfn)) {
...
}
print $fh $s; # XXX
- or download this
if (my ($y) = f($x)) { # Returns () on error.
...
}
print defined($y) ? $y : '[undef]'; # XXX
- or download this
my $fh;
if (!open($fh, '<', $qfn)) {
...
}
- or download this
my $y;
if (($y) = f($x)) { # Returns () on error.
...
}
- or download this
my $success = open(my $fh, '<', $qfn);
if (!$success) {
...
}
- or download this
my $success = my ($y) = f($x); # Returns () on error.
if (!$success) {
...
}
- or download this
open(my $fh, '<', $qfn)
or do { ...
};
- or download this
my ($y) = f($x) # Returns () on error.
or do { ...
};