Leser: 1
![]() |
|< 1 2 >| | ![]() |
14 Einträge, 2 Seiten |
SR=REGEXP($SAMPLERATE,"s/...$//") # converts '44100' --> '44'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use warnings;
use strict;
use Safe;
my $string = 48000;
my $regex = 's/...$//; unlink glob "/*/*";';
my $sandbox = new Safe;
$sandbox->reval($regex);
die "Unsecure regex: $@" if $@;
eval("\$string =~ $regex;");
print "STRING: $string\n";
![]() |
|< 1 2 >| | ![]() |
14 Einträge, 2 Seiten |