On Mon, Jul 15, 2002 at 06:06:29PM -0700, drieux wrote: > > On Monday, July 15, 2002, at 11:01 , Jeff 'japhy' Pinyan wrote: > > >On Jul 15, chad kellerman said: > > > >>package Script; > >>BEGIN { > >> use Exporter; > >> @ISA = qw( Exporter ); > >> @EXPORT = qw($serverList); > >>} > > > >Why the BEGIN block? Where'd you pick that up from? > > That seems to have been a 'fad' from the perl 5.5.X days,
Oh, it's earlier than that, and easily explained by a quick perusal of perlmod where it appears as part of the suggested template for a module. It seems to me to be ultra defensive programming, and I have yet to find a need for it in the real world (as much as Perl inhabits the real world.) -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]