Earlier, I mentioned the idea of replacing overly complicated
"printf"s with a "print" and some "f" function calls, as:

   {
     $a=1828;
     $b=45;
     print f("pi=%8.6f, ",        355/113),
           f("e=2.7$a$a$b%d$b\n", $b*2);
   }

Now, "f" is really just shorthand for "sprintf", but creating "f"
was a bit trickier than I'd have thought.  FWIW, here's something
that works:

   sub f { sprintf(shift(@_), @_); }

-r
-- 
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm    - my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc     - Prime Time Freeware's Darwin Collection
            • ... Jim Cromie
              • ... Luke Palmer
          • ... Dmitry Kohmanyuk Дмитрий Кохманюк
  • ... Yitzchak Scott-Thoennes
    • ... Rich Morin
      • ... Yitzchak Scott-Thoennes
        • ... Rich Morin
        • ... Dmitry Kohmanyuk Дмитрий Кохманюк
          • ... Yitzchak Scott-Thoennes
  • ... Matthew Wickline
  • Rich Morin

Reply via email to