Thread regulären ausdruck in variable
(16 answers)
Opened by stevg at 2003-09-10 10:25
Genau
Code (perl): (dl
)
1 2 3 4 5 6 use strict; use warnings; my $string1 = "test1"; my $string = "test1"; my $re = qr/$string/; print "OK" if $string1 =~ $re; Gruß Alex |