$_ = < toto@foo.comToto tata@bar.comTata tutu@baz.comTutu EOF my @email = /(.*?)<\/email>/g; my @name = /(.*?)<\/name>/g;