|Think about Loose Coupling|
|( #3333=superdoc: print w/replies, xml )||Need Help??|
Weird! The ^Ms that are getting left behind on the end of the first names suggests that the contents of the data file is weird, though given the source that's no real surprise.
The reason for having the no warnings 'uninitialized' is to avoid the need for a special case to deal with location lines that don't contain the room number. The regex is saying:
If the room number isn't present, the second capture ($2) will be undefined, hence the need to suppress the warning. However, that you are getting three warnings means that all 3 captures are undefined (ie. the regex failed to match), which suggests that the data in the file is formatted somewhat differently to the sample data you posted.
Without being able to see the actual contents of the file it is a little difficult to diagnose the problem.
Perhaps you could run this one liner on the data file to dump the first few lines in hex and post the output here?
Examine what is said, not who speaks."Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
In reply to Re: Re: Re: Need a better way to count input lines