The best way is split: my @a = split qr{[/.]}, $important_string
Also see @a = grep {! m/\.sta/ } @a
Fortunately perl is magic and doesn't require 400 lines for simple tasks like these. You can just use the built ins.
-Paul
In reply to Re: splitting up a string based on character locations
by jettero
in thread splitting up a string based on character locations
by batcater98
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |