Thread join (//, @buffer): join mit // hängt von Matching ab (16 answers)
Opened by El Ron at 2007-02-07 10:35

Dubu
 2007-02-08 21:12
#74111 #74111
User since
2003-08-04
2145 Artikel
ModeratorIn + EditorIn

user image
[quote=betterworld,08.02.2007, 16:05]In perlop steht die Sache mit dem leeren Pattern auch beschrieben:
Quote
              If the PATTERN evaluates to the empty string, the last success-
              fully matched regular expression is used instead. In this case,
              only the "g" and "c" flags on the empty pattern is honoured -
              the other flags are taken from the original pattern. If no
              match has previously succeeded, this will (silently) act
              instead as a genuine empty pattern (which will always match).
[/quote]
Ah, danke für die Aufklärung!
Das erklärt, warum gerade dann eine "1" zurück geliefert wird, wenn der Match nicht klappt.

View full thread join (//, @buffer): join mit // hängt von Matching ab