Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Quick-n-dirty Photo Album

by PodMaster (Abbot)
on Feb 15, 2003 at 17:24 UTC ( #235584=note: print w/replies, xml ) Need Help??


in reply to Quick-n-dirty Photo Album

Here's a suggestion, use File::Spec
perl -MFile::Spec -e " die File::Spec->catfile( qw[ foo /bar baz ], sh +ift ) " bar

update: and use URI::URL; ;)

perl -MURI::URL -e " die URI::URL->new(q[foo/bar/baz], q[http://bar.co +m/])->canonical; " perl -MURI::URL -e " die URI::URL->new(q[foo/bar/baz], q[http://bar.co +m/])->abs; "

update: Also, it's nice that you used HTML::Template, but you might consider a lighter weight alternative to CGI (CGI::Simple) since you're not using CGI to generate x?html.


MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
** The Third rule of perl club is a statement of fact: pod is sexy.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2020-02-27 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (120 votes). Check out past polls.

    Notices?