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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://301435]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-03-19 02:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found