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

Re: SV: [FWP] What is regex



Bill Jones wrote;
>> Of course! But I was actually complaining about the '-characters
>
>I still say that:
>
>$_ = "Does the 'JAPH' community like singles or not?";
>
>print "Hmmm ", (/'JAPH'/) ? "yes" : "no";
>
>Is cool, no?

Yes, it's way cool and cute as heck! I just love the way perl allows you to
do everything in a myriad of ways. But - that doesn't have anything to do
with the original claim! (It might be that I edited out too much from the
original mail.) The example was something like this;

C:
strncmp(somestring,"foo",3);
Perl:
/'foo'/;

The C example test if the first  three character in somestring are equal
"foo". While the perl example looks for "'foo'" anywhere in the string.
Which of course isn't even remotely the same!

So let's drop this old, boring thread and get on with the FUN! :-)


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe