in reply to Splitting 2 different patterns
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);
|
|---|