develooper Front page | perl.perl5.porters | Postings from December 2011

backreferencing perl code

Thread Next
From:
Kamal Khatri
Date:
December 21, 2011 04:08
Subject:
backreferencing perl code
Message ID:
CAByhwix08LzVY3rKWGc8um7JnKxakwhQGpcdF54BBZkWNWkYpg@mail.gmail.com
Hi all,

In the code below, the if condition generates OP_AND. Inside perl
interpreter, is there a way to know that the OP_AND was generated
by the statement "if ($a==1)".  I could not figure if it was possible to use
PL_op to backreference the actual source code.

$a = 1;
if($a == 1) {
  print "\$a == 1";
}

Any pointers would be helpful.

thanks,
Kamal

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