Just a small correction: In scalar context it returns 1 because there is 1 element in the list. If there were more parentheses it might return a higher number.
-----Original Message----- From: Charles K. Clarkson [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 6:13 PM To: 'Jan Eden'; 'Perl Lists' Subject: RE: Two-liner to one-liner I think(?) "( $eingabe =~ /(?<=Teilnehmer:\n\n)(.+)/s )[0]" is forcing the regex into list context. In scalar context it returns 1 (for success?) and split assumes scalar context of its second argument. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>