in reply to Re: Re: Broken regexp
in thread Broken regexp
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Broken regexp
by Juerd (Abbot) on Mar 09, 2004 at 14:47 UTC | |
|
Re: Re: Re: Re: Broken regexp
by ysth (Canon) on Mar 09, 2004 at 16:20 UTC |