If you know there is something that is not a "Word" character, immediately following the machine name, you can use:
to match all your cases.m/\Q$machine\E\W/
“PHP is a minor evil perpetrated and created by incompetent amateurs, whereas Perl is a great and insidious evil perpetrated by skilled but perverted professionals.”
― Jon Ribbens
In reply to Re: Parsing Issue while using Variable name in Pattern
by NetWallah
in thread Parsing Issue while using Variable name in Pattern
by perlavi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |