Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!dimacs.rutgers.edu!morley.rutgers.edu!purtill From: purtill@morley.rutgers.edu (Mark Purtill) Newsgroups: comp.lang.perl Subject: Re: g2p (gawk) Message-ID: Date: 10 Apr 91 17:14:15 GMT References: <1991Apr9.190516.14429@Think.COM> <1991Apr09.193024.19792@convex.com> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 16 tchrist@convex.COM (Tom Christiansen) writes: >From the keyboard of rlk@think.com (Robert Krawitz): >:Is there a converter from gawk to perl? I prefer using gawk to awk >:because of functions and (particularly) because of multidimensional >:arrays. >a2p should work just fine. Well, not quite. gawk has a different command line convension for reading variables (`-v A=B' rather than just `A=B') and a2p doesn't know about gawk's special "/dev/std..." files, so it tries to open "/dev/stderr" and so on. Easy to fix by hand, tho. (This is the a2p with perl 3.0 patch-level 41). ^.-.^ Mark Purtill purtill@dimacs.rutgers.edu (908)932-4580 (O) ((")) DIMACS, P.O. Box 1179, Rutgers U., Piscataway, NJ 08855 (908)220-6905 (H) ********** Note new area code! We are now (908) rather than (201)! **********