[Jprogramming] RE: Text File Manipulation
Oleg Kobchenko
olegykj at yahoo.com
Thu Oct 5 22:30:06 HKT 2006
Perl has syntax sugar for regex. Similar sintax sugar is possible
in J with a few convenience definitiotns.
However, on one occasion I included regex in "require"
but ended up with pure J parsing, which turned out to
be more straightforward.
See under Phrase DB, phrmake.ijs, readfile verb
http://olegykj.sourceforge.net/jhp/
--- Randy MacDonald <ramacd at nbnet.nb.ca> wrote:
> Devon;
>
> You must have been using a different Perl than the one I was exposed to last
> year. I had the I-could-do-this-easier-in-J feeling every moment I was
> wrestling with Perl. I guess YMMV applies.
> ------------------------------------------------------------------------
> |\/| Randy A MacDonald | APL: If you can say it, it's done.. (ram)
> |/\| ramacd at nbnet.nb.ca |
> |\ | | The only real problem with APL is that
> BSc(Math) UNBF'83 | it is "still ahead of its time."
> Sapere Aude | - Morten Kromberg
> Natural Born APL'er | Demo website: http://156.34.91.130/
> -----------------------------------------------------(INTP)----{ gnat }-
>
> ----- Original Message -----
> From: "Devon McCormick" <devonmcc at gmail.com>
> To: "Programming forum" <programming at jsoftware.com>
> Sent: Thursday, October 05, 2006 12:54 AM
> Subject: Re: [Jprogramming] RE: Text File Manipulation
>
>
> > You might be better off pre-processing the file in Perl to get the data
> > from
> > a page into
> > a form more suited for J.
> >
> > On 10/4/06, bill lam <bbill.lam at gmail.com> wrote:
> >>
> >> This is an aging report. I guess it is not possible to write a program
> >> that can
> >> handle all types of aging reports, so that it has to be an ad hoc based
> >> solution.
> >>
> >> If I were you, I would rather not use regex but instead depend on
> >> counting
> >> lines
> >> and position. Of course, it should pay attention to boundary conditions.
> >>
> >> --
> >> regards,
> >> bill
> >> ----------------------------------------------------------------------
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> >>
> >
> >
> >
> > --
> > Devon McCormick
> > ^me^ at acm.
> > org is my
> > preferred e-mail
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Programming
mailing list