bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gawk string to number (bug?)


From: John Cowan
Subject: Re: gawk string to number (bug?)
Date: Thu, 10 Dec 2009 21:38:22 -0500
User-agent: Mutt/1.5.13 (2006-08-11)

Valerio, Danilo scripsit:

> Several people suggested me to switch to perl, but... I want to try
> everything I can with gawk before starting learning perl. :-)

You really do need a language with bignum (arbitrary-precision integer)
support, such as Java, Common Lisp, Scheme (in most dialects), or Perl.
Of these, Perl is the closest to awk, and there's even a translator, a2p.
Be sure to read the caveats in the a2p man page, though.  Then you can
add "use bignum;" to the top of the generated Perl, and away you go.

-- 
My confusion is rapidly waxing          John Cowan
For XML Schema's too taxing:            address@hidden
    I'd use DTDs                        http://www.ccil.org/~cowan
    If they had local trees --
I think I best switch to RELAX NG.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]