in reply to getting syntex error in pattern search
where would you put semicolon ?open FILE,"config.txt" or die "cannot open file : $!"; while(<FILE>) { $ip = ($_ =~ m/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/ ) print "$ip"; # print $_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: getting syntex error in pattern search
by choroba (Cardinal) on Aug 22, 2012 at 09:34 UTC | |
by SerZKO (Beadle) on Aug 22, 2012 at 09:50 UTC |