in reply to A split ing headache

split /:/, $string, 0 is the same as not putting the ", 0" on the end. It isn't split zero times. The number on the end is the number of parts to split the string INTO, not how many TIMES it is split. Thus 1 gets you one part and 2 gets you qw( a b:c ). The third number is a constraint on the size of the list created by split.

--
$you = new YOU;
honk() if $you->love(perl)