Gast+2007-09-11 20:09:32--Super, das ist die Erklärung, die ich gesucht hatte.
Aber bitte komm jetzt nicht auf Idee $_ zu vergewaltigen und jedesmal
$_="foo" zu setzen, nur damit du so eine if-Anweisung verwenden kannst. :-)
Dieser wird in bestimmten Blöcken automatisch gesetzt. Du kannst ihn
zum Beispiel in Schleifen benutzen.
my @strings = qw/string1 string2 string3/;
for (@strings) {
if (/meine regex/) {
} else {
}
}
Edit: thx 2 pq for her hints about $_ on irc
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.