in reply to Parsing Issue while using Variable name in Pattern
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parsing Issue while using Variable name in Pattern
by perlavi (Initiate) on Feb 16, 2012 at 05:26 UTC | |
by NetWallah (Canon) on Feb 16, 2012 at 07:36 UTC |