Thread Array, Match und $1 (14 answers)
Opened by IceRage at 2011-09-22 22:54

FIFO
 2011-09-23 13:40
#152628 #152628
User since
2005-06-01
469 Artikel
BenutzerIn

user image
2011-09-22T23:02:39 pq
ein globales matching funktioniert im skalaren kontext so, dass bei jedem aufruf der nächste match versucht wird.


Aber doch nur, wenn das Matching mehrfach auf denselben String angewendet wird, oder? Der OP iteriert ja durch sein Array und versucht den Match nur einmal pro Element.
Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it? -- Brian Kernighan: "The Elements of Programming Style"

View full thread Array, Match und $1