in reply to Re^2: Generalising string in patternin thread Generalising string in pattern
1. Change your pattern as follows:
$pattern = qr/i\s*am\s*using\s*per/; [download]
2. Make a copy of your string with the spaces removed.