Leser: 1
![]() |
|< 1 2 >| | ![]() |
20 Einträge, 2 Seiten |
if (/pattern/) { ... }
if(index("pattern",$_)>-1) { ... }
if (/pattern/) { ... }
if(index("pattern",$_)>-1) { ... }
1
2
3
my $re_as_str = join "|", @havis_array;
my $re = qw/$re_as_str/;
if ($blankname =~ $re) { ... }
Quote[/quote]my $re = qr/$re_as_str/;
1
2
3
4
Unrecognized escape \d passed through at C:\Daten\perl\forum\qr.pl line 3.
Final $ should be \$ or $name at C:\Daten\perl\forum\qr.pl line 3, within string
syntax error at C:\Daten\perl\forum\qr.pl line 3, near "=~ "^\d+$""
Execution of C:\Daten\perl\forum\qr.pl aborted due to compilation errors.
QuoteIch könnte dann also auch schreiben
if ($var =~ "^\d+$") {...}
![]() |
|< 1 2 >| | ![]() |
20 Einträge, 2 Seiten |