You can't (try to) use / as the regex delimiter and (an unquoted) / within the regular expression. Use a different regex delimiter, for example !:
... if (@RECORD = grep (m!^\s*password\s+requisite\s+(/lib/security/$ISA/) +?pam_cracklib.*lcredit=([0123456789-]+!, @fRecords )) { ...
Also see perlop on m//
In reply to Re^3: Test RegEx
by Corion
in thread Test RegEx
by Saved
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |