From: Lionel B. <lio...@bo...> - 2005-02-15 17:21:43
|
Michel Bouissou wrote the following on 15.02.2005 17:46 : >Le Mardi 15 F=E9vrier 2005 17:35, Lionel Bouton a =E9crit : > =20 > >>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 ha= ve to=20 >be recompiled each time it is called, and not only once... This can caus= e a=20 >major performance cost. > =20 > Don't you know the "my $regexp =3D qr/value_read_from_file/;" syntax ? takes care of the compilation once and for all. |