Number::Compare5.16 man page on Darwin

Man page or keyword search:  
man Server   23457 pages
apropos Keyword Search (all sections)
Output format
Darwin logo
[printable version]

Number::Compare(3)    User Contributed Perl Documentation   Number::Compare(3)

NAME
       Number::Compare - numeric comparisons

SYNOPSIS
	Number::Compare->new(">1Ki")->test(1025); # is 1025 > 1024

	my $c = Number::Compare->new(">1M");
	$c->(1_200_000);			  # slightly terser invocation

DESCRIPTION
       Number::Compare compiles a simple comparison to an anonymous
       subroutine, which you can call with a value to be tested again.

       Now this would be very pointless, if Number::Compare didn't understand
       magnitudes.

       The target value may use magnitudes of kilobytes ("k", "ki"), megabytes
       ("m", "mi"), or gigabytes ("g", "gi").  Those suffixed with an "i" use
       the appropriate 2**n version in accordance with the IEC standard:
       http://physics.nist.gov/cuu/Units/binary.html

METHODS
   ->new( $test )
       Returns a new object that compares the specified test.

   ->test( $value )
       A longhanded version of $compare->( $value ).  Predates blessed
       subroutine reference implementation.

   ->parse_to_perl( $test )
       Returns a perl code fragment equivalent to the test.

AUTHOR
       Richard Clamp <richardc@unixbeard.net>

COPYRIGHT
       Copyright (C) 2002,2011 Richard Clamp.  All Rights Reserved.

       This module is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

SEE ALSO
       http://physics.nist.gov/cuu/Units/binary.html

perl v5.16.2			  2011-09-21		    Number::Compare(3)
[top]

List of man pages available for Darwin

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net