Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Add directry to @INC system wide

by vinoth.ree (Monsignor)
on Mar 06, 2013 at 05:33 UTC ( #1021955=note: print w/replies, xml ) Need Help??

in reply to Add directry to @INC system wide

kielstirling ++

I am also using the same method, here it is,

use File::Spec::Functions qw(catdir splitdir canonpath); use FindBin qw($RealBin); BEGIN { my @dirs = splitdir(canonpath($RealBin)); my($path) = grep { -e $_ } ( map { $_ = catdir(@dirs[0 .. $#dirs - + $_]).'/bin/new/' } (0 .. $#dirs) ); unshift(@INC, $RealBin, $path); }

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021955]
Discipulus SharePoint will insinuate in my $workspace I think i'll need alot of patience..
[erix]: for all the tea in china book
[erix]: about perfide albion
[erix]: I guess that should be Perfidious Albion

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2017-06-27 08:56 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (601 votes). Check out past polls.