in reply to Re: text extraction question
in thread text extraction question

From the op

and 8 8 512 no in another array

I think you may have missed extracting the "no" in the second array, although from the scanty problem description it's not at all clear that it might be wanted.

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^3: text extraction question
by liverpole (Monsignor) on Dec 05, 2006 at 19:58 UTC
    Whoops ... you're absolutely right!

    My brain directly converted it from "no" to "number(s)" on input (as in and 8 8 512 numbers), so I didn't even look to see if it was part of the string.

    I guess that validates blue_cowdawg's comments all the more, as far as the original question being a little bit vague.


    s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
      Yes, very vague and somewhat counterintuitive. To me, NM suggests numbers and CH suggests characters. However, the example given seems to suggest that NM is a single digit and CH is two or more digits; yes|no seems a reasonable guess for SW if it means switch. blue_cowdawg definitely hit the nail on the head.

      It would be nice if echoangel911 clarified what was meant.

      Cheers,

      JohnGG