logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Class::Measure::Length - Calculate measurements of length.

Authors

       See "AUTHORS" in Class::Measure.

License

       See "LICENSE" in Class::Measure.

perl v5.36.0                                       2023-10-01                        Class::Measure::Length(3pm)

Methods

       This module inherits all the methods made available by Class::Measure.

   length
           $m = length( 2, 'metres' );

       Creates a new measurement object.

Name

       Class::Measure::Length - Calculate measurements of length.

Support

       See "SUPPORT" in Class::Measure.

Synopsis

           use Class::Measure::Length;

           print length( 2, 'km' )->meters();

Units

InternationalSystemofUnits
       Also known as SI and "metric", this unit of measure includes the following.

           kilometre
           metre
           centimetre
           millimetre
           decimetre
           micrometre
           nanometre

       And all veriations are aliased, such as "m", "meter", "meters", "metres".

   Shared
       These units are shared by with the US and Imperial unit systems.

           inch
           foot
           yard
           rod
           mile
           chain
           furlong

       All relevant aliases included.

   UnitedStats
       Units specific to the United States.

           survey_mile
           link
           fathom
           cable_length

       Aliases included.

   Imperial
       Imperial (english) units.  The only unit included in this set is "league".

   Other
           light_second
           nautical_mile

See Also