Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Why I can't remove trailing slash

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

in reply to Why I can't remove trailing slash

You neglect to call main. The escaping notation is broken, you specified $path to have the literal string \\\ak\. Better use single quotes:

my $path = '\\\\\\c$\\bak\\';

or avoid nasty backslash escaping with heredoc:

my $path = <<'UNC'; \\\c$\bak\ UNC chomp $path;

Comment on Re: Why I can't remove trailing slash
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2015-11-29 05:11 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (747 votes), past polls