Xavier Mas schreef: > Dr.Ruud: >> Xavier Mas: >>> m#(pattern)#; >>> $variable= $1.; >> >> That can be written as: >> ($variable) = /(pattern)/; > > Thank you for pointing that, Dr. Ruud but, what does mean > ($variable)?.
/(pattern1).*?(pattern2)/ returns the matches in list context, and the number of matches (so 0 or 2) in scalar context. Just try it with some test code. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/
