[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: [perl #59802] return 0 or die;
"rvtol(AT)xs4all.nl (via RT)" schreef:
> C<return doit() or die "did it wrong";>
>
> Would be nice if that warns "unreachable statement".
Some examples can be seen here:
http://www.google.com/codesearch?q=+lang:perl+\+return\+.*\+or\+die
http://www.google.com/codesearch?q=lang:perl+return\+\S%2B\s%2Bor
There is one in:
http://search.cpan.org/src/GRICHTER/ExtUtils-XSBuilder-0.28/XSBuilder/ParseSource.pm
A multi-line example:
http://search.cpan.org/~markf/Attempt-1.01/lib/Sub/Attempts.pm
--
Affijn, Ruud
"Gewoon is een tijger."
- Follow-Ups from:
-
"David Nicol" <davidnicol@gmail.com>
- References to:
-
"rvtol@xs4all.nl (via RT)" <perlbug-followup@perl.org>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]