On Wed, 2002-04-03 at 20:49, Larry Wall wrote:
: Additionally, can you chain statement modifiers?
:
: do_this() if $a unless $b;
[...]
No, still can't chain them.
That's a darned shame. In p5, I keep going back to code and finding
something like:
print foreach x;
and wanting to
So, does the new =~ commute now, except for regexps; i.e.
$a =~ $b
is the same as
$b =~ $a
unless one or both are regexps?
Additionally, can you chain statement modifiers?
do_this() if $a unless $b;
print for mylist if $debug;
or less efficiently,
print if $debug for mylist;
print $x,
Luke Palmer writes:
: So, does the new =~ commute now, except for regexps; i.e.
:
: $a =~ $b
: is the same as
: $b =~ $a
:
: unless one or both are regexps?
I believe I marked which ones commute in A4.
: Additionally, can you chain statement modifiers?
:
: do_this() if $a unless $b;
: print