[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Warning on abandoned statements?
Is it (a) feasible, (b) desirable to issue a warning when a loop control
statement is an argument to a function that therefore will never be called?
E.g.: print "Found it!", last if /wombat/;
That is perhaps the most plausible example and while the fix is obvious,
it seems deserving of a warning as much as use of a string in void
context, and for more or less the same reason.
--
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/
- Follow-Ups from:
-
Michael G Schwern <schwern@pobox.com>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]