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 <[EMAIL PROTECTED]> 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)
> |/\| [EMAIL PROTECTED]  |
> |\ |                     | 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" <[EMAIL PROTECTED]>
> To: "Programming forum" <[email protected]>
> 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 <[EMAIL PROTECTED]> 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 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to