Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Finding files relative to a module

by GrandFather (Saint)
on May 15, 2011 at 05:38 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://904918]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2024-04-23 17:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found