Tzafrir Cohen <[EMAIL PROTECTED]>: > On Sun, Nov 16, 2008 at 07:20:07AM +0100, s. keeling wrote: > > > #!/usr/bin/perl -w > > # > > # Usage: calcme <string_to_calculate> [<output_format>] > > Here's something simpler: > > calc() { perl -e "print ''.($*).\"\\n\""; }
Very nice. :-) > (Does not support the extra formatting you have, though) To be honest, I'm pretty sure I didn't write calcme.pl; I think I found it out there somewhere (google). If the former, sorry I failed to save the attribution. -- Any technology distinguishable from magic is insufficiently advanced. (*) http://blinkynet.net/comp/uip5.html Linux Counter #80292 - - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]