borisz has asked for the wisdom of the Perl Monks concerning the following question:
The Intend for this node is to make something like this look nicer.sub xx { wantarray ? ( qw/wrong wrong wrong/ ) : 'right' } # use scalar to force scalar context print scalar (xx()); # use prototypes sub ss($) { return $_[0] } print ss(xx()); # use the . operator but it change my result. ( invalid try ) print xx() . ''; # use || or && did not work since they change my returned value
$x->zxy( time => scalar( localtime ), 4 => scalar(qw/ 1 2 3 4 /) );
|
|---|