in reply to Re^2: How to find barewords in perl code?
in thread How to find barewords in perl code?
and just prints 1.sub foo {shift} sub bar {1} print foo bar;
OTOH, in pre-5.6 days, when I was still using bare word file handles, I used all uppercase names, and I use all lowercase for subs, so /(?:print|...)\s+[A-Z]/ would have worked for my code.
|
|---|