in reply to Splitting Array with Variable Spaces
This will split on any whitespace (including tabs, etc.). I know that's not explicitly what you're using, but it's useful sometimes to be more flexible.my @new = split /\s+/, $item;
By the way, you can save yourself some space by only saving the fields you're interested in after the split:
That's an array slice, and it's quite nice.my($eleven, $fourteen) = (split /\s+/, $item)[10,13];
|
|---|