Please note that the advantage in these cases is only in the number of characters that you need to type. And perhaps in readability (which some people might consider a disadvantage in these cases). For execution, there is no difference in the opcode tree generated, and thus no difference in execution. For example:
Personally, I prefer to use an explicit $_ if I think it improves the readability of my code.$ perl -MO=Deparse -e 'length' length $_;
Liz
In reply to Re: Re: Re: Broken regexp
by liz
in thread Broken regexp
by ColtsFoot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |