Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

TorgoX (1933)

TorgoX
  sburkeNO@SPAMcpan.org
http://search.cpan.org/~sburke/

"Il est beau comme la retractilité des serres des oiseaux rapaces [...] et surtout, comme la rencontre fortuite sur une table de dissection d'une machine à coudre et d'un parapluie !" -- Lautréamont

Journal of TorgoX (1933)

Monday February 06, 2006
09:26 PM

WUV

[ #28601 ]
Dear Log,

Tie::Comma, I wuv yoooo!

I know it's just a special case of MJD's good old Interpolation module, but it's still WUVVABLE.

(Altho ideally I'd just be able to use a (s)printf format to get commafication, but apparently there's nobody with the right derring-do to make that happen.)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • use Tie::Formatted;
    printf "This is hex: $format{12, 18, 35, 42, '%02x'}\n";
    prints
    This is hex: 0c 12 23 2a
    Plus if you prefer a different name for the magic hash:
    use Tie::Formatted qw(f);
    print "$f{142857, '%08x'}\n";
    gives
    00022e09
    There. :)