How NOT to do it, but a bit better
file: code/LessBadExample/FindNewSeries.pm 11: my $ua = LWP::UserAgent->new( 12: agent => 'domms new series finder', 13: timeout => 5, 14: ); 15: 16: my $formatter = Number::Format->new; 17: 18: my $tt = Template->new( INCLUDE_PATH => $FindBin::Bin . '/../tt/', );
Objects are initiated at module load time