- or download this
sub context {
print
...
void
scalar
a=[b],b=[]
- or download this
from the perl 5.8 perlfunc scalar() section:
...
evaluating all but the last element in void context
and returning the final element evaluated in scalar
context. This is seldom what you want.
- or download this
$c = scalar(context('a'), context('b'));
print "$c\n";
void
scalar
b