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 browsing the Monastery: (9)
As of 2015-09-01 10:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (370 votes), past polls