in reply to Re: Re: CGI::Application vs CGI::Builder
in thread CGI::Application vs CGI::Builder
Even better: Since I have no need to send something to eval from my domain, I will put all the code to execute in the Makefile.PL avoiding any "insane suspect".
I need just to check the version number, so I think that something like this could be ok:
; my $dist = 'CGI::Builder'; ; my $vers = 1.21 ; ; my $LWP_installed = eval {require LWP::Simple} ; ; if ( $LWP_installed ) { my $current_vers = LWP::Simple::get ( "http://perl.4pro.net/check_version.cgi" . "?DISTRIBUTION=$dist&VERSION=$vers&PERL=$]-$^O +" ) ; if ( $current_vers > $vers ) { print 'This is an OLD VERSION! ... bla, bla ' } else { print 'Version OK ... bla, bla' } }
If there are no objection, I will change all my Makefile.PL with that code in the next version.
(I will update all my new distribution in a day or so).
Regards
Domizio Demichelis
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: CGI::Application vs CGI::Builder
by pudge (Sexton) on May 06, 2004 at 21:12 UTC | |
by Anonymous Monk on May 07, 2004 at 08:40 UTC | |
Re: Re: Re: Re: CGI::Application vs CGI::Builder
by MidLifeXis (Monsignor) on May 04, 2004 at 16:26 UTC |
In Section
Seekers of Perl Wisdom