3 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl -w
$text = "josdifj34joji";
$regex = '(\d+)';
$opt = "g";
$com = '$text =~ m/'."$regex".'/'."$opt;";
eval $com;
print "\$1: $1\n";
1
2
3
4
5
6
7
8
9
10
11
12
13
use strict;
use warnings;
my $text = "josdifj34joji";
my $regex = '(\d+)';
my $opt = "g";
my $erg=undef;
my $com = '$text =~ m/'."$regex".'/'."$opt;\$erg=\$1";
eval $com;
print "\$1: $erg\n";
3 Einträge, 1 Seite |