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

Re: [MacPerl] Localization Issue?



>>In MacPerl, this code will extract all form tags from $fromInfo into
>>@tags.  In
>>any other ( as far as I can tell, DOS/UNIX) $& and $' are empty.  Does anyone
>>know why?
>
>Are you sure about that?

Mostly.

>Could you make a self-containted test case and show what it returns on
>other platforms, and give the versions of perl running on those other
>platforms?

I will test again--but I have only 5.003 on DOS/NT and UNIX (BSD 4.4 under
MachTen) besides MacPerl 5.1.9r4.

>[FWIW, you should avoid using $& and $' if you can; they slow down every
>regex in your program when used once.]

Yes--I know.  Performance was not an issue in this case.  I implemented a more
elegant solution anyway that does not employ $& and $'.

Alex.

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch