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

Re: relative paths

by clemburg (Curate)
on Nov 27, 2001 at 00:16 UTC ( #127614=note: print w/ replies, xml ) Need Help??


in reply to relative paths

Been there. For me, the main problem was how to use abs2rel() - somehow I think the calling convention is backwards.

Example:

sub make_relative_path_to_website { my ($file) = @_; return File::Spec::Unix->abs2rel($config->{START_DIR}, File::Spec::Unix->rel2abs($file)) +; }

Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com


Comment on Re: relative paths
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://127614]
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: (21)
As of 2015-07-01 15:52 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 (6 votes), past polls