ulaksh has asked for the wisdom of the Perl Monks concerning the following question:
output I got isopen 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 $_; }
syntax error at startandendmatch.pl line 7, near ") print" Execution of startandendmatch.pl aborted due to compilation errors.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: getting syntex error in pattern search
by moritz (Cardinal) on Aug 22, 2012 at 07:32 UTC | |
|
Re: getting syntex error in pattern search
by SerZKO (Beadle) on Aug 22, 2012 at 09:19 UTC | |
by choroba (Cardinal) on Aug 22, 2012 at 09:34 UTC | |
by SerZKO (Beadle) on Aug 22, 2012 at 09:50 UTC | |
|
Re: getting syntex error in pattern search
by 2teez (Vicar) on Aug 22, 2012 at 10:08 UTC | |
|
Re: getting syntex error in pattern search
by AnomalousMonk (Archbishop) on Aug 22, 2012 at 12:18 UTC |