git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add git svn gc command

From
Ddemerphq <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/"
Previous: Thomas RastNext: Eric Wong
Message 7 of 8 in “Add git svn gc command”
  1. Add git svn gc commandRobert Zeh, Jul 19, 2009
  2. Eric WongJul 20, 2009
  3. demerphqJul 20, 2009
  4. Eric WongJul 20, 2009
  5. demerphqJul 20, 2009
  6. Thomas RastJul 20, 2009
  7. demerphqJul 20, 2009
  8. Eric WongJul 21, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.