Nother alternative is to remove the brackets first, then split.
my ($nobrackets = $_) =~ s/(\[|\])//g; my @feeder_line = split ' ', $nobrackets;
In reply to Re: Split using multiple conditions
by dws
in thread Split using multiple conditions
by juo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |