Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 exploiting the Monastery: (8)
As of 2014-10-02 11:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (56 votes), past polls