How do you know the result of split gives you (at least) four items? Add a diagnostic print to show you $_ and you'll probably see what's happening.
It's not a scoping problem or a readline problem or a permission problem.
Improve your skills with Modern Perl: the free book.
In reply to Re^2: scoping problem?
by chromatic
in thread scoping problem?
by rocroc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |