Gossamer Forum
Home : Products : DBMan : Customization :

regexp_func / key_match in sub query?

Quote Reply
regexp_func / key_match in sub query?
Quick question: Does anyone know what the array - I guess it's an array - @regexp_func in sub query does?
In particular, I'm interested in finding out what these lines in sub query do:
Code:
$in{'ma'} ? ($key_match = ($key_match or &{$regexp_func[$field]})) :
(&{$regexp_func[$field]} or next LINE);

Many thanks in advance,
kellner
Quote Reply
Re: [kellner] regexp_func / key_match in sub query? In reply to
just a bit above it, in

$regexp_func[$field] = eval "sub { m/$tmpreg/o }";

/o according to my perl book means:

Only compile pattern once

(Programming perl, 2nd edition, page 70)

Is this of any help?

Lex