in reply to Re: regex needed
in thread regex needed

I believe that the
print (split /:/)[1];
is not working because it first evaluates the print (split /:/), which returns a scalar value, in this case "1" for a successful print. So it's trying to get a list element of a scalar, which does not work. Same as trying 1[0]; .