Merlyn, I'm quite the newbie, and have only dipped my monastic toe into the pond of REGEX and haven't touched reading files at all, so this looks like a great place for me to learn something. ;)
A few weeks ago there was a math challenge posted (sorry I don't remember the node ID) about finding the shortest intiger that contained all the successive intigers from 0000 to 9999. In this particular problem, if the file contained only the number sequence "12345" would /^(\d+)/ pick up 12, 34, 45, 234, or even 12345 as .found elements? Why or why not? Coming from a programing language that isn't as text based as Perl (hey, I forgot to mention the language name!) I find regexes useful and a little difficult to wrap my brain around, even after RTFM a few times (okay, after reading the Indigo Perl version of the friendly manual!). Thanks for any insight.
Looking to learn!
Petras.
Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats.
-Howard Aiken