in reply to Re: What's the better Perl style? Define parameters or not?
in thread What's the better Perl style? Define parameters or not?
And they're evil like goto in C.
goto is very useful in C.
TYPE* foo(...) { ... if (...) goto Error; ... if (...) goto Error; ... if (...) goto Error; ... return p; Error: ... cleanup acquired resources ... return NULL; }
In Perl, not so much.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What's the better Perl style? Define parameters or not?
by Tanktalus (Canon) on Jan 05, 2010 at 15:23 UTC | |
by JavaFan (Canon) on Jan 05, 2010 at 15:46 UTC |