my () = rhs; puts rhs in a list context. The assignment is made to the elements in the order they are listed. So in the sample you gave the first element in the list ($subdir) gets the first element in the list created by split, and @keywords gets all the rest.
In reply to Re: what does my ($subdir, @keywords) = split; do.
by GrandFather
in thread what does my ($subdir, @keywords) = split; do.
by richill
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |