Help for this page

Select Code to Download


  1. or download this
    use Number::Format;
    my $x = new Number::Format(-thousands_sep => ' ');
    my $number = 1234567890;
    print $x->format_number($number);
    
  2. or download this
    $ perl example.pl
    1 234 567 890
    
  3. or download this
    my $number = 1234567890;
    print format_number($number);
    ...
        $x = reverse $x;
        return $x;
    }
    
  4. or download this
    1 234 567 890