Hi Vadim,
* KONOVALOV, Vadim (Vadim)** CTR ** <vkonovalov@alcatel-lucent.com> [2008-04-29 13:10]:
>> > BTW if (condition) {...} expands to condition && do {...};
>>
>> No it doesn't.
>
> yes it does
>
> D:\perl5100\lib\B>perl -MO=Concise -we "if($r>3){print 'qq'}"
you can also use Deparse, whose output is friendlier to read than
that from any of the optree dumpers. With the `-x7` switch it
won’t try to reconstruct familiar idioms from the optree but will
rather expose directly what’s in there:
$ perl -MO=Deparse,-x7 -e'if($r>3){print "qq"}'
$r > 3 and do {
print 'qq'
};
-e syntax OK
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
Thread Previous
|
Thread Next