Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: Answer: How do I get the directory containing a given file?

by wog (Curate)
on Feb 24, 2002 at 20:02 UTC ( #147201=note: print w/ replies, xml ) Need Help??


in reply to Re: Answer: How do I get the directory containing a given file?
in thread How do I get the directory containing a given file?

It appears that Cwd::abs_path has issues in 5.6.1 (which seem to be fixed in bleedperl). You can get around this by reversing the calls:

use Cwd qw(abs_path); use File::Basename; my $dir = abs_path(dirname($file));


Comment on Re: Re: Answer: How do I get the directory containing a given file?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2015-07-29 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls