in reply to Re: !@#$ $#_
in thread !@#$ $#_
It looks as if any complex sub-expressions /subroutine calls are evaluated in order, and variables/references are evaluated last.my $i = 0; sub foo { $i = $i + 1 } print ($i, ${\$i}, foo(), $i + 0, foo(), foo(), foo(), $i); ### prints: 44112344
Seems rather un-perlish, but at least subroutine calls are done in-order.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: !@#$ $#_
by Dominus (Parson) on Mar 25, 2001 at 20:05 UTC |