Data::SIprefixes::zepto - This provides zepto matching for Data::SIprefixes.
Version 0.0.0
use Data::SIprefixes::zepto; my $prefix=Data::SIprefixes::atto->new; my $origMeasure='zeptometer'; my $measure=$prefix->longMatch( $origMeasure ); my $long; if ( $prefix->error ){ warn('error:'.$prefix->error.': '.$prefix->errorString); }elseif( ! defined( $measure ) ){ $measure=$prefix->shortMatch( $origMeasure ); }else{ $long=1; }
This initiates the object.
my $prefix=$Data::SIprefixes::atto->new;
Returns the number needed to to multiple it by to get from the unprefixed measure to the prefixed measure.
my $fromBase=$prefix->fromBase;
Matches long SI prefixed measures.
A match returns the measure with out the SI prefix, which will be '' if no measure is specified.
my $measure=$prefix->longMatch( $origMeasure ); if ( $prefix->error ){ warn('error:'.$foo->error.': '.$foo->errorString); }
Matches short SI prefixed measures.
This returns the symbol for the prefix.
my $symbol=$prefix->symbol;
Returns the number needed to to multiple it by to get from the prefixed measure number to the unprefixed measure.
my $toBase=$prefix->toBase;
Nothing passed for a measure.
Space found after prefix.
Zane C. Bowers-Hadley, <vvelox at vvelox.net>
<vvelox at vvelox.net>
Please report any bugs or feature requests to bug-data-siprefixes at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Data-SIprefixes. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-data-siprefixes at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Data::SIprefixes::zepto
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Data-SIprefixes
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Data-SIprefixes
CPAN Ratings
http://cpanratings.perl.org/d/Data-SIprefixes
Search CPAN
http://search.cpan.org/dist/Data-SIprefixes/
Copyright 2012 Zane C. Bowers-Hadley.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Data::SIprefixes, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::SIprefixes
CPAN shell
perl -MCPAN -e shell install Data::SIprefixes
For more information on module installation, please visit the detailed CPAN module installation guide.