
FishMonger
Veteran
Nov 5, 2008, 4:09 AM
Post #2 of 2
(238 views)
|
|
Re: [zeppelin girl] sending array as a function argument
[In reply to]
|
Can't Post
|
|
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. my @split = split(/\s+/, $next); @split[0] is better written as $split[0] since it's a single array element, not an array slice.
|