in reply to Re^2: how to force scalar context (without scalar())?
in thread how to force scalar context (without scalar())?
Ah, assignment… of course. You can inline it:
function( aa => ( my $aa = otherfunction() ), bb => ( my $bb = anotherone() ), );
That's all the options available.
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: how to force scalar context (without scalar())?
by borisz (Canon) on Sep 19, 2004 at 15:21 UTC | |
by ihb (Deacon) on Sep 19, 2004 at 21:40 UTC | |
by borisz (Canon) on Sep 19, 2004 at 21:54 UTC |