Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^3: PAUSE problem

by Anonymous Monk
on May 03, 2011 at 10:47 UTC ( #902672=note: print w/ replies, xml ) Need Help??

in reply to Re^2: PAUSE problem
in thread PAUSE problem

Don't understand the last line though; what did you have in mind?

Nothing important, just hoops. Instead of

my $mod = __PACKAGE__; $mod =~ s{::}{/}g; $mod .= '.pm'; $mod = $INC{$mod}; $mod =~ s/EPD\.pm//i; my $module_dir_qfn = realpath($mod); my $db_dir_qfn = catdir($module_dir_qfn, 'db');
You might have used
realpath( catfile( __FILE__, updir(), 'db' ) );

Comment on Re^3: PAUSE problem
Select or Download Code
Replies are listed 'Best First'.
Re^4: PAUSE problem
by hsmyers (Canon) on May 03, 2011 at 14:18 UTC
    It took a bit of head bashing, but this:
    my $db_dir_qfn = realpath( catfile( __PACKAGE__, updir(), 'db' ) );
    seems to do the trick nicely. Love getting rid of lines of code for one--- particularly when the lines gone look more like the much maligned perl line noise! Thanks for the suggestion.


    "Never try to teach a pig to wastes your time and it annoys the pig."

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2015-12-01 22:11 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (28 votes), past polls