Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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 \\127.0.0.1\ak\. Better use single quotes:
my $path = '\\\\127.0.0.1\\c$\\bak\\';

or avoid nasty backslash escaping with heredoc:

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2016-06-27 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (335 votes). Check out past polls.