Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

(Re: I don't use printf enough) Interpolation.pm

by bart (Canon)
on Oct 23, 2003 at 00:42 UTC ( #301435=note: print w/ replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://301435]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-09-17 00:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (54 votes), past polls