is there a way of doing something likeif ($string =~ /int/) ... elsif ($string =~ /char/) ... elsif ($string =~ /bool/) ... elsif ($string =~ /long/) ...
Please forgive my poor, c style attempt at a construct...if ($string =~ /(int)|(char)|(bool)|(long)/){ #my single action... }
In reply to multiple options for pattern match help by barryscott
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |