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

Re: SV: [FWP] What is regex



On Sat, 19 Jun 1999 16:25:54 +0200, you wrote concerning SV: [FWP]
What is regex:

>> In perl (or any RE aware language) one could say:
>>
>> do stuff() if /'JAPH'/;
>
>Actually in perl one would say something along the lines of;
>
>stuff() if $data=~m/^JAPH/;

Not neccessarily:

while (<$FH>) {
  do stuff() if /JAPH/;
  # more stuff
}

Alan

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