in reply to Re: regex needed
in thread regex needed

Another way to keep the parentheses from being grabbed by print is to add a + in front of them, like this:
print +(split /:/)[1];
perlfunc explains why this happens: Perl built-in functions can be called with or without parentheses, so when perl sees parentheses there, it associates them with the function call, not with the creation of a list.

-- Mike

--
just,my${.02}