Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: Perl_API get_sv and SvIV_set

by BUU (Prior)
on Apr 17, 2006 at 03:01 UTC ( #543743=note: print w/replies, xml ) Need Help??


in reply to Re^3: Perl_API get_sv and SvIV_set
in thread Perl_API get_sv and SvIV_set

Well, I modified pp_next by adding a "DIE" call in the middle of it but no loop I tried could trigger it. Doesn't seem to be the one I want.

Replies are listed 'Best First'.
Re^5: Perl_API get_sv and SvIV_set
by diotalevi (Canon) on Apr 17, 2006 at 04:47 UTC

    There is no such op. If you add a continue block, you'll notice that lineseq has three arguments/statements instead of just two. If you want to run something at the end of every loop, alter the optree to wire your op in.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

      Heh. Not a bad idea if that is the only way to do it. Unfortunately I lack experience doing evil things to perl. Any idea on where I should be looking to do so? I understand perly.y has the grammar, or what there is of it, but I was a little confused how I could make it add an op.

        Read nodes by me that mention B::Generate and google for Simon Cozens' article "Where wizards fear to tread."

        ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

        This node describes adding a new op to the grammar in Perl. I'm not sure if this is helpful to you but I remembered it when I read your node. Good luck.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://543743]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2016-10-01 23:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (9 votes). Check out past polls.