1. Change your pattern as follows:
$pattern = qr/i\s*am\s*using\s*per/;
2. Make a copy of your string with the spaces removed.
In reply to Re^3: Generalising string in pattern
by toolic
in thread Generalising string in pattern
by rajyalakshmi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |