I wish the grep.cpan.me supported lookaheads and lookbehinds, which would allow me to search a little more specifically for situations where the idiom is used outside of the "require" and "use" use case. If it did, I might try something like:
if \(eval ["'](?!require|use).+?;\s*1;?["']
Dave
In reply to Re^3: The 'eval "require $module; 1"' idiom
by davido
in thread The 'eval "require $module; 1"' idiom
by sedusedan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |