Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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' ) );

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 surveying the Monastery: (7)
As of 2020-12-03 08:31 GMT
Find Nodes?
    Voting Booth?
    How often do you use taint mode?

    Results (53 votes). Check out past polls.