in reply to Re^4: $1 not "freezing" in an addition
in thread $1 not "freezing" in an addition
The problem occurs in... This is very hard to detect through static analysis of source code; it's probably not especially easy to detect at run-time either.
Yes, I recognized that, but since PPI certainly detects $1 and s/// as $1 and substitution operator, I see no reason perlcritic couldn't do the same, it uses PPI
I also recognize the abilities of warnings/lint, they actually run the code and can detect this case as well -- sure it might be too much to ask from warnings (could be slow) , but its not too much to ask of lint :)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: $1 not "freezing" in an addition
by chromatic (Archbishop) on Dec 14, 2012 at 18:10 UTC | |
by Anonymous Monk on Dec 15, 2012 at 08:40 UTC | |
by chromatic (Archbishop) on Dec 15, 2012 at 20:25 UTC | |
by Anonymous Monk on Dec 16, 2012 at 01:18 UTC | |
by chromatic (Archbishop) on Dec 16, 2012 at 01:43 UTC | |
|
In Section
Seekers of Perl Wisdom