anaconda_wly has asked for the wisdom of the Perl Monks concerning the following question:
I want to remove the trailing slash in the path but the code print nothing. Why?use strict; use warnings; sub main { my $path = "\\\\127.0.0.1\\c$\\bak\\"; $path =~ s/\\$//; print __FILE__.__LINE__." path $path\n"; return; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why I can't remove trailing slash
by daxim (Curate) on Apr 19, 2013 at 15:42 UTC | |
|
Re: Why I can't remove trailing slash
by kennethk (Abbot) on Apr 19, 2013 at 15:44 UTC | |
|
Re: Why I can't remove trailing slash
by choroba (Cardinal) on Apr 19, 2013 at 15:43 UTC | |
|
Re: Why I can't remove trailing slash
by blue_cowdawg (Monsignor) on Apr 19, 2013 at 15:47 UTC | |
by anaconda_wly (Scribe) on Apr 20, 2013 at 01:32 UTC | |
|
Re: Why I can't remove trailing slash
by space_monk (Chaplain) on Apr 19, 2013 at 15:46 UTC |