Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: cwd pragma (rfc)

by ikegami (Patriarch)
on Jun 27, 2006 at 23:14 UTC ( [id://557893]=note: print w/replies, xml ) Need Help??


in reply to Re: cwd pragma (rfc)
in thread cwd pragma (rfc)

or
substr($realpath, -length($basename)) = '' if substr($realpath, -length($basename)) eq $basename;

Replies are listed 'Best First'.
Re^3: cwd pragma (rfc)
by sh1tn (Priest) on Jun 28, 2006 at 10:25 UTC
    Maybe just
    $realpath = join(q//, split(/.[^\/]+$/,$realpath));


      The point of mine was to remove slow operations, not add new ones.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-24 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found