Does perl optimize the split and only grab the first field (the 'a') and not continue breaking up the line after that? (I know this may not be the best place to ask this question, but I couldn't find a better one.)$x = "a b c d e f g"; ($y) = (split(/\s+/,$x))[0];
In reply to is split optimized? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |