"Line 1: The second parameter of split is a string,not an array" is not a Perl warning as far as I know. And even using an array as the second parameter of 'split' will not generate a warning. Let's say you have an array that holds ten elements. As the second parameter in split the array will be evaluated in scalar context, returning the string "10". You'll be splitting "10" on whatever pattern you passed as the first param to split.
Dave
In reply to Re: "2nd param of split in a string.." compilation warning
by davido
in thread "2nd param of split in a string.." compilation warning
by palkia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |