Re: [PATCH] Add git svn gc command
- From
- demerphq <demerphq@gmail.com>
- Date
- Jul 20, 2009, 12:18 UTC
- Message-ID
- <9b18b3110907200518p57a8b3gdfb51004e274b2bc@mail.gmail.com>
- In-Reply-To
- <200907201342.01912.trast@student.ethz.ch>
2009/7/20 Thomas Rast <trast@student.ethz.ch>:
Show 10 quoted lines
> 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/"