That works by splitting the first argument given to the sub. In a more complex sub, I would have shifted the first argument into a temporary variable.sub words { split " ", $_[0]; }
After Compline,
Zaxo
In reply to Re: String to tokens
by Zaxo
in thread String to tokens
by nulloverflow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |