in reply to Nagging space after splitting

If you were splitting on something other than whitespace (and thus couldn't use " " for the pattern), you could do:

@ar = split(/$pattern/, $str); shift(@ar);

or

$str =~ s/^$pattern//; @ar = split(/$pattern/, $str);

If you knew the number of fields, you could also use:

@ar = (split(/$pattern/, $str))[1..$n-1];