Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Null scalars in array

by Smaug (Pilgrim)
on Sep 21, 2006 at 06:01 UTC ( [id://574056] : note . print w/replies, xml ) Need Help??

in reply to Null scalars in array

Thanks again for the help! Here is some more detail. The input looks like this:
foo some string bar unneeded data foo another string bar data data foo + bar data data foo s bar data foo string bar data data data foo + bar data foo 123 string bar
What I wanted from this was @matches where:
$matches[0] = some string $matches[1] = another string $matches[2] = $matches[3] = s $matches[4] = string $matches[5] = $matches[6] = 123 string
I'm busy going through all the suggestions.