I was assuming it was a typo/email munge, and that the command he pipes actually produces consistent output. That may be a faulty assumption on my part. YOu know what they say about assumptions In
Its hard to say Derek doesn't give us much to work with :)
general, though, when parsing log files (which seems to be waht's going on here) if you're assured reasonably consisten data, it's better IMNSHO to look for a particular index, because loggers are more likely to add occasional extranious info or comments at the end of the line than in the middle.
Yeah, I imagine you're correct in your assumption, without actual valid info its hard to tell :)
Basically if you're gauranteed it index 7 use index 7, otherwise if you're gauranteed its the last item (and it may be 7 and it may not be( use the $#array version, if you can't do either redo it all based on hoew the output is. And if you post to the list about it please send accurate info.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>