Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

(tye)Re4: The Definitive Unit Conversion Script

by tye (Sage)
on Dec 14, 2002 at 06:53 UTC ( #219836=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
        my @new= ConvertTo( $toUnits, $fromUnits, @old );
  2. or download this
    #   <--------- inches ---------><----- ft ----->
        my @inches= ConvertTo( 'in', 'ft', 1, 2, 3 );
        # @inches is now ( 12, 24, 36 )
  3. or download this
        my $toInFromFt= ConvertTo( 'in', 'ft' );
        while(  <IN>  ) {
            print OUT $toInFromFt->($_), $/;
  4. or download this
    my @table = (
        #### temperature
        # Pick one of the solutions at random: (:
        return split ' ', (@source{@sol})[rand @sol];

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://219836]
[ELISHEVA]: \Disciplus : lol
[Discipulus]: and ELISHEVA we waait one your post since ~2years... ;=)
[ELISHEVA]: has it really been that long?
[Discipulus]: it seems..
[Discipulus]: more: just one thread in the last ~5 years
[Discipulus]: but Dumas is waiting for me in the bed.. luckly as book author.. see you!
[ELISHEVA]: Sleep well!
[ELISHEVA]: Or read well
[Discipulus]: thanks, best dreams to you all

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2017-05-28 20:45 GMT
Find Nodes?
    Voting Booth?