Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Getting the current perl interpreter while processing XS

by rafl (Friar)
on Sep 19, 2006 at 17:56 UTC ( #573782=note: print w/ replies, xml ) Need Help??


in reply to Getting the current perl interpreter while processing XS

Both xsubpp and ExtUtils::ParseXS pass the argument to INCLUDE directly to open() without preprocessing it. You could either preprocess your .xs file from Makefile.PL and fill in the path to the perl executable or you could probably use ExtUtils::ParseXS to write your own xsubpp which uses an overwritten open() function to do something special if it gets something like "$(PERLRUN) script.pl".

Cheers, Flo


Comment on Re: Getting the current perl interpreter while processing XS
Re^2: Getting the current perl interpreter while processing XS
by Joost (Canon) on Sep 19, 2006 at 18:34 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-12-27 14:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls