in reply to Problem stripping directory listing
The second point is that your use of split could be optimised. This is one situation where a regex with capturing parenthesis could be used instead (see perlop for more about the return value of m// in list context).
my ($reqd) = m{users/(.+?)/};
--
integral, resident of freenode's #perl
|
|---|