Leser: 1
|< 1 2 >| | 20 Einträge, 2 Seiten |
elsif ($blankname =~ m/05A-160A|06A-160A|07A-160A|08A-160A|09A-160A|10A-160A|13A-160A/i)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl
use warnings;
use strict;
my $blankname = "07A-160A";
my @array = ("05A-160A", "06A-160A", "07A-160A", "08A-160A", "09A-160A", "10A-160A", "13A-160A");
for (my $i = 0; $i <= $#array; $i++) {
print "Gefunden.\n" if $blankname eq $array[$i];
} # for
1
2
3
my $re_as_str = join "|", @havis_array;
my $re = qw/$re_as_str/;
if ($blankname =~ $re) { ... }
1
2
3
my $re_as_str = join "|", @havis_array;
my $re = qw/$re_as_str/;
if ($blankname =~ $re) { ... }
Quotemy $re = qr/$re_as_str/;
|< 1 2 >| | 20 Einträge, 2 Seiten |