r.joseph has asked for the wisdom of the Perl Monks concerning the following question:
But that didn't work. How would I do this correctly? Thanks you so much!$file_path = '/home/sites/.../image1.jpg'; $path = '/home/sites/.../'; eval "$file_path =~ tr/$path//";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Stripping parts of paths from directory names
by davorg (Chancellor) on Jan 06, 2001 at 13:48 UTC | |
|
Re: Stripping parts of paths from directory names
by adamsj (Hermit) on Jan 06, 2001 at 13:53 UTC | |
by repson (Chaplain) on Jan 06, 2001 at 13:56 UTC | |
|
Re: Stripping parts of paths from directory names
by Coyote (Deacon) on Jan 06, 2001 at 14:29 UTC | |
by Coyote (Deacon) on Jan 06, 2001 at 15:10 UTC | |
|
Re: Stripping parts of paths from directory names
by ChOas (Curate) on Jan 06, 2001 at 14:56 UTC | |
|
Re: Stripping parts of paths from directory names
by mr.nick (Chaplain) on Jan 06, 2001 at 19:47 UTC | |
|
Re: Stripping parts of paths from directory names
by a (Friar) on Jan 07, 2001 at 10:49 UTC | |
|
(jeffa) Re: Stripping parts of paths from directory names
by jeffa (Bishop) on Jan 07, 2001 at 11:48 UTC |