From: Henrik C. G. <hc...@b-...> - 2005-02-15 17:20:55
|
tir, 15 02 2005 kl. 17:46 +0100, skrev Michel Bouissou: > Le Mardi 15 F=E9vrier 2005 17:35, Lionel Bouton a =E9crit : > > > > I'd prefer to have > > > > if ($fqdn =3D~ $known_server_patter) >=20 > If you put the "big regexp" as a variable and not a constant, it will h= ave to=20 > be recompiled each time it is called, and not only once... This can cau= se a=20 > major performance cost. Yes, but it can be avoided with something like=20 ($fqdn =3D~ /$known_server_pattern/o) --=20 Henrik Christian Grove <hc...@b-...> B-one |