einerwitzen has asked for the wisdom of the Perl Monks concerning the following question:
I have a string "$var = "one/two/three/four/five/six/";"
(note the last ' / ' on it. I need to be able to remove just the last item, leaving the rest as a string,
"$var2 = "one/two/three/four/five/";
Is there a simple way to do this?
(note the last ' / ' on it. I need to be able to remove just the last item, leaving the rest as a string,
"$var2 = "one/two/three/four/five/";
Is there a simple way to do this?
Back to
Seekers of Perl Wisdom