in reply to Stripping parts of paths from directory names
This prints: /web/images/image1.jpguse strict; use warnings; my $file_path='/home/sites/site18/users/rjoseph/web/images/image1.jpg' +; my $break_point = '/web'; my @foo = split($break_point, $file_path); my $path = $break_point . pop(@foo); print $path;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Stripping parts of paths from directory names
by Coyote (Deacon) on Jan 06, 2001 at 15:10 UTC |