- or download this
sub func { return (0, 1, 2) }
...
} else {
print "0\n";
}
- or download this
0
1
- or download this
($result) = func($param)
- or download this
if (... and do { ($result) = func($param); 3 })
- or download this
if (... and do { ($result) = func($param); $result })
- or download this
if (... and $result = (func($param))[0])