Can you explain in words what your split code is supposed to do?
split /-\d+/, $myint;
Maybe you want to read perlre?
In practice, I found that it's often much easier to match what I want to keep instead of splitting away the things I don't want:
my @outputlist = ( $myint =~ m!([^-/]+)!g);
In reply to Re: Splitting 2 different patterns
by Corion
in thread Splitting 2 different patterns
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |