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

Re: [PATCH 1/3] configure: Add test for Perl

From
Randal L. Schwartz <merlyn@stonehenge.com>
Date
Jul 6, 2006, 13:03 UTC
Message-ID
<868xn67umr.fsf@blue.stonehenge.com>
In-Reply-To
<20060706124025.G325584e9@leonov.stosberg.net>
>>>>> "Dennis" == Dennis Stosberg <dennis@stosberg.net> writes:
Dennis> +	_perl_version=`"$_perl" -e 'require 5.6.0;printf "%vd", $^V'`
perl -V:version gives you the version like:
        version='5.8.6';
nice and eval-able. :)  But you can just rely on the exit status from
        perl -e 'eval { require 5.006; 1 } or exit 1'

which will be good (0) if the perl is new enough, and bad (1) if the perl is too old. (Perl4 will really barf and give an error as well, but still be an exit 1.)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Previous: Dennis StosbergNext: Timo Hirvonen
Message 2 of 14 in “configure: Add test for Perl”
  1. 1/3 configure: Add test for PerlDennis Stosberg, Jul 6, 2006
  2. Randal L. SchwartzJul 6, 2006
  3. Timo HirvonenJul 6, 2006
  4. Dennis StosbergJul 6, 2006
  5. Matthias LederhoferJul 6, 2006
  6. Gerrit PapeJul 6, 2006
  7. Dennis StosbergJul 6, 2006
  8. Timo HirvonenJul 6, 2006
  9. Dennis StosbergJul 6, 2006
  10. Petr BaudisJul 7, 2006
  11. Junio C HamanoJul 7, 2006
  12. Timo HirvonenJul 7, 2006
  13. Alex RiesenJul 6, 2006
  14. Dennis StosbergJul 6, 2006

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.