From: demerphq Date: Mon, 20 Jul 2009 12:18:48 GMT Subject: Re: [PATCH] Add git svn gc command Message-ID: <9b18b3110907200518p57a8b3gdfb51004e274b2bc@mail.gmail.com> In-Reply-To: <200907201342.01912.trast@student.ethz.ch> 2009/7/20 Thomas Rast : > demerphq wrote: >> >> my $can_compress= eval "require Compress::Zlib; 1"; > > Wouldn't > >  my $can_compress = eval { require Compress::Zlib; 1 }; > > be better on the grounds that this will catch compilation errors in > the eval'd statement at compilation (of the main program) time? Yeah, thats a good catch. In this case there is no need for the eval STRING usage. cheers, Yves -- perl -Mre=debug -e "/just|another|perl|hacker/"