Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: How @INC can be managed from c code? ( runperl.c )

by Anonymous Monk
on Apr 01, 2015 at 18:12 UTC ( [id://1122179]=note: print w/replies, xml ) Need Help??


in reply to How @INC can be managed from c code?

Just like you would from the commandline
perl -Iwhatever -Iwhateverelse -f programfile.pl -- args args args

http://sourceforge.net/p/citrusperl/code/HEAD/tree/tags/PRE_VERSION_2001/execsrc/main.c#l79

https://metacpan.org/source/PLAVEN/Padre-1.00/win32/padre.c

env manipulation par_unsetenv("PERL5OPT"); https://metacpan.org/source/RSCHUPP/PAR-Packer-1.025/myldr/utils.c / https://metacpan.org/source/RSCHUPP/PAR-Packer-1.025/myldr/mktmpdir.c

And here it is runperl.exe by another nameperl scripts executor on Win32, and its cousin Turn your script into binary without a compiler! :-P

Replies are listed 'Best First'.
Re^2: How @INC can be managed from c code? ( runperl.c )
by DrMoisha (Novice) on Apr 03, 2015 at 15:35 UTC
    Thank you! Sorry, I cannot check this right now, but as soon as I can, I'll reply!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-24 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found