Hiya

I was hoping that someone would be kind to help me.

I have a string like so :

Haresources : 10.203.4.5, Interfaces : 10.203.4.5 10.203.4.7

Im trying to get the ip's after Interfaces into an array, but for the likes of me, im just not getting it right. This is what I currently got.

my @h2ip = ($tmp{ $opt_H2 } =~ /(?:Interfaces\s:\s(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}))/gi );

If someone could help, I would be most appreciative.

Kind Regards
Brent Clark



--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to