Loading ...
Sorry, an error occurred while loading the content.
 

Re: VERSION module usage

Expand Messages
  • santosh_br
    Updating with correct version number for $first... ... I
    Message 1 of 2 , Oct 10, 2007
      Updating with correct version number for $first...

      > #!perl
      > #
      >
      > use version;
      > $first = version->new("1.9");
      > $second = version->new("1.30");
      > print "$first\n";
      > print "$second\n";
      > #$diff = version->new("$first - $second");
      > if ( $first gt $second){
      > print "$first is the latest release \n";
      > }

      --- In perl-beginner@yahoogroups.com, "santosh_br" <santosh_br@...>
      wrote:
      >
      > Hi perlgroup,
      >
      > I'm trying to use the VERSION module available for checking the
      > version information. My requirement is... we have many products and
      > those products have lots of release's like (3.2, 3.9, 3.12, 3.15).
      > Now I want to read which is the latest version among each product.
      I
      > tried using the VERSION module for this... but somehow I am not
      > getting the proper result.
      >
      > here is... my script...
      >
      > #!perl
      > #
      >
      > use version;
      > $first = version->new("1.29");
      > $second = version->new("1.30");
      > print "$first\n";
      > print "$second\n";
      > #$diff = version->new("$first - $second");
      > if ( $first gt $second){
      > print "$first is the latest release \n";
      > }
      >
      >
      > rgds,
      > SAntosh
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.