develooper Front page | perl.perl5.porters | Postings from July 2001

Re: turning EXPR into sub { EXPR }

Thread Previous | Thread Next
From:
Jeff 'japhy/Marillion' Pinyan
Date:
July 31, 2001 09:51
Subject:
Re: turning EXPR into sub { EXPR }
Message ID:
Pine.GSO.4.21.0107311250250.28213-100000@crusoe.crusoe.net
On Jul 31, Jeff 'japhy/Marillion' Pinyan said:

>Could someone lend me a hand in turning an expression (or specifically,
>the OP representing it) into an anonymous subroutine?

Gah!

-            LISTOP (0x81a8078) list
-                OP (0x81a7ec0) pushmark
-                SVOP (0x81a8038) const  PV (0x81e3bc8) "this"
-                SVOP (0x81a8058) const  PV (0x81e3bd4) "is"
-                SVOP (0x81a7ee0) const  PV (0x81e3be0) "cool"

+            SVOP (0x81ca9c0) const  PV (0x81e3c28) "this"
+            SVOP (0x81ca9f0) const  PV (0x81e3c34) "is"
+            SVOP (0x81caa68) const  PV (0x81e3c40) "cool"

That's what's wrong... I need to remove that LISTOP and OP it seems...

-- 
Jeff "japhy" Pinyan      japhy@pobox.com      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **


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