Hello, All!
I just started to learn Perl, and don't know exactly what regexp I can use
to get IP address from 'ifconfig' routine. My system is linux, so output is
the following:
eth0 Link encap:Ethernet HWaddr 10:EE:0C:36:8E:C8
inet addr:192.168.11.22 Bcast:192.168.11.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:41816612 errors:0 dropped:0 overruns:0 frame:0
TX packets:34407704 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:2137695964 (2038.6 Mb) TX bytes:3394043916 (3236.8 Mb)
Interrupt:22 Base address:0x8c00
I'd like to save into some variable the value after "inet addr:".
Thank you.
With best regards, Roman Mashak. E-mail: mr*@tusur.ru