Help for this page
my $str = "/rootdir/sub1/sub2/sub3/sub4";
print substr($str, 0, rindex($str, "/", length($str) - 2));
Electric eels were invented at the same time as electricity
Before electricity was invented, electric eels had to stun with gas
Results (375 votes). Check out past polls.