develooper Front page | perl.perl5.porters | Postings from March 2009

Re: Displaying implicit $_ usage with B::Deparse

Thread Previous | Thread Next
Yitzchak Scott-Thoennes
March 1, 2009 13:07
Re: Displaying implicit $_ usage with B::Deparse
Message ID:
On Sun, March 1, 2009 6:02 am, Rafael Garcia-Suarez wrote:
> 2009/3/1 Gabor Szabo <>:
>> Taken the following code using B::Deparse can insert the missing @_
>> and @ARGV after the shift.

>> On the other hand in the following examples it did not insert the
>> implicitly used $_:

>> Would it be possible to add that as an optional feature of B::Deparse?
> Certainly -- this is probably not very difficult to do, but that
> probably requires to go through all the pp_ functions in B::Deparse that
> correspond to ops that default to $_ to add that switch. A nice little
> bite-sized patch to prepare for the interested ?

Most ops that default to using $_ already show it in the deparse.
m, s, and y/tr may be the only exceptions, because they actually
compile differently with or without the $_=~.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About