DOKK / manpages / debian 12 / libclass-measure-perl / Class::Measure::Length.3pm.en
Class::Measure::Length(3pm) User Contributed Perl Documentation Class::Measure::Length(3pm)

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

    use Class::Measure::Length;
    
    print length( 2, 'km' )->meters();

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

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

Creates a new measurement object.

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".

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

    inch
    foot
    yard
    rod
    mile
    chain
    furlong

All relevant aliases included.

Units specific to the United States.

    survey_mile
    link
    fathom
    cable_length

Aliases included.

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

    light_second
    nautical_mile

See "SUPPORT" in Class::Measure.

See "AUTHORS" in Class::Measure.

See "LICENSE" in Class::Measure.

2023-01-23 perl v5.36.0