[vienna.pm] scalar(Hash)

Johannes Fuernkranz juffi at ai.univie.ac.at
Tue Dec 18 08:34:30 CST 2001


* * * vienna-pm-list * * *


Das ist vermutlich Perl 101, aber ich konnte es weder im FAQ noch im Kamel 
finden:

Warum tut

my $s = 'n';
foreach $i (1,2,3) {
   $s =~ s/n/$i/;
   print "$s\n";
}

nicht was ich will, und wie kann ich es reparieren?
Ich brauche vermutlich eine Art Gegenteil des o modifiers, aber sowas find 
ich nicht.

ligr, Juffi


###
You are subscribed to vienna-pm-list as Johannes Fuernkranz <juffi at ai.univie.ac.at>
http://www.fff.at/fff/vienna.pm/



More information about the Vienna-pm mailing list