in reply to working backwards in an array element?

The offset [-1] gives you the last element of an array, so $res[0][-1] would give you the line with the IP address in it. After that you could just split the line and grab the last word, which would give you the IP address you want.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Replies are listed 'Best First'.
Re^2: working backwards in an array element?
by CA_API (Initiate) on Aug 28, 2010 at 00:39 UTC

    Thanks! I tried that idea out and got it working. Definitely appreciate your help. -Brian