Hi, i have this: open INFILE, "< $_Globals{SYSLOG}" or die $!; #ModifiedFile(); while (<INFILE>) { if (/([0-9a-z:]+)\s*via eth0)/) { $_Globals{MAC_ADDR} = $1; } } And my file is like this: ..... LOG_INFO : BOOTREQUEST from 00:80:9f:2e:0f:9c via eth0 ...... it worked but i wanted also to match the mac eddress if i have this LOG_INFO : BOOTREQUEST from 00:80:9f:2e:0f:9c via eth1
I tried this but it didn't work: if (/([0-9a-z:]+)\s*via ([eth])/) { ...... Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]