Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Why I can't remove trailing slash

by space_monk (Chaplain)
on Apr 19, 2013 at 15:46 UTC ( #1029542=note: print w/replies, xml ) Need Help??

in reply to Why I can't remove trailing slash

Hmmm...where to start? :-)

Its not really clear what you're trying to do here. For one thing you didn't execute the main() routine. Perl does not run any method unless you tell it to, unlike C.

Use single quotes for your path variable. The $\ in it produces an error. Did you really mean to use the record separator variable here?

If you are editing/manipulating file paths use some of the standard libraries for doing so (e.g. File::Basename).

If any of my proposed solutions have minor errors, it's because I don't waste my genius on trivial matters. :-P

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1029542]
[Discipulus]: floating was the keyword and.. to use supersearch is plus sign not a (plus) sin
Discipulus wonders if just numbers less than 18 are really floating..( chemical humor)
[Lady_Aleena]: Hello.

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2017-06-26 21:01 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (594 votes). Check out past polls.