Help for this page

Select Code to Download


  1. or download this
    # "Official" import mechanism
    use Interpolation commify => sub {
    ...
    $a = 12345.21;
    $b = 1357.98;
    print "$a*$b with commas inserted looks like '$commify{$a*$b}'.\n";
    
  2. or download this
    # Non-obfuscated form, using tie():
    use Interpolation;
    ...
    $a = 12345.21;
    $b = 1357.98;
    print "$a*$b with commas inserted looks like '$commify{$a*$b}'.\n";