Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Shouldn't $file now be "somefile.txt" ? Thanks!$ScriptPath = "\\\\SERVER\\C\$\\APP\\BIN"; $file = "$ScriptPath\\somefile.txt"; $file =~ s/$ScriptPath\\//;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: s/// and variable interpolation (use a module instead)
by grinder (Bishop) on Dec 16, 2002 at 13:26 UTC | |
|
Re: s/// and variable interpolation
by mce (Curate) on Dec 16, 2002 at 13:27 UTC | |
|
Re: s/// and variable interpolation
by LTjake (Prior) on Dec 16, 2002 at 13:27 UTC | |
|
Re: s/// and variable interpolation
by CubicSpline (Friar) on Dec 16, 2002 at 13:19 UTC |