Nov 5, 2008, 4:09 AM
Post #2 of 2
The values are most likely not separated by a tab, they are probably separated by 1 or more spaces. Also, the first arg to split is a pattern not a string, so use a regex.
Re: [zeppelin girl] sending array as a function argument
[In reply to]
my @split = split(/\s+/, $next);
@split is better written as $split since it's a single array element, not an array slice.