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

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

Thread Previous | Thread Next
From:
Yitzchak Scott-Thoennes
Date:
March 1, 2009 13:07
Subject:
Re: Displaying implicit $_ usage with B::Deparse
Message ID:
40864.97.113.94.117.1235938956.squirrel@webmail.efn.org
On Sun, March 1, 2009 6:02 am, Rafael Garcia-Suarez wrote:
> 2009/3/1 Gabor Szabo <szabgab@gmail.com>:
>> 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About