C.DeRykus wrote: > On Dec 8, 1:57 am, dery...@gmail.com (C.DeRykus) wrote: >> On Dec 8, 12:08 am, an...@melerit.se (Anders Hartman) wrote: >> >>> ... > >> ... >> Also, in this case, I'd write the eval for compile-time and check >> for errors: >> >> eval { asub() }; >> die $@ if $@; >> > > No, sorry, that's a "useless use of eval" since you could just call > the sub directly. Since, the intent was to define and call the sub > dynamically though, checking for eval errors is still a good idea.
No, it's not. If asub() has a die or it calls a sub that has one, this will catch the die. Also for croak, et al. -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. I like Perl; it's the only language where you can bless your thingy. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/