in reply to remove the part of the string that is after the second to last '/'
Or the non cool way! Regular expression are for weenies! :)
$var = "one/two/three/four/five/six/"; split /\//, $var; pop; $var = $var . $_ foreach(@_);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: remove the part of the string that is after the second to last '/'
by Juerd (Abbot) on Mar 08, 2002 at 09:10 UTC |
In Section
Seekers of Perl Wisdom