1234567891011121314151617
#!/usr/bin/perluse strict;use warnings;use 5.010;my %par = ( text => "Tes\x01t", zeichen => qr{ [e \x01] }x,);test(\%par);say $par{text};sub test { my ($par) = @_; $par->{text} =~ s/$par->{zeichen}//g;}