Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Finding files relative to a module

by GrandFather (Sage)
on May 15, 2011 at 05:38 UTC ( #904918=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $modulePath = $INC{'Chess/PGN/EPD.pm'};
    
  2. or download this
    ...
    use File::Spec::Functions qw(rel2abs splitpath updir catdir);
    ...
    my $loadPath   = rel2abs ($INC{'Chess/PGN/EPD.pm'});
    my @parts      = splitpath ($loadPath);
    my $db_dir_qfn = realpath (catdir (@parts[0, 1], updir(), 'db'));
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://904918]
help
Chatterbox?
[Discipulus]: the winner is..
[Discipulus]: Mr haukex from Germany! thanks a lot to the other parteciapant our dear Mr afoken.. ;=)
[Discipulus]: no, seriously thanks both, i missed 'scientist' and 'floating point' and the resarche was imposible..
Discipulus go to his cell to bookmark this
[haukex]: Well to be honest I just did a super search for "every should know floating" ;-)
[Discipulus]: floating was the keyword and.. to use supersearch is plus sign not a (plus) sin

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2017-06-26 20:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (594 votes). Check out past polls.