Thread find mit Skalarvariabel (8 answers)
Opened by DeluxXx at 2005-06-19 18:36

esskar
 2005-06-19 20:52
#55585 #55585
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
geht doch prima:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
use strict;

my $b = "abcdefghiklcafkasgf";
my $html = "abc";
# while ($b =~ s/$html/cdef/) {
# }
# kann durch g schalter ersetzt werden

$b =~ s/$html/cdef/g;
print $b;

View full thread find mit Skalarvariabel