vit has asked for the wisdom of the Perl Monks concerning the following question:
I am gettingcat file.txt | perl -ne '{chomp; ($a, $b) = split/\s+/; $s = "$a $b"; + next if($s !~ /^\w+\'?\w+?\s+\w+\'?\w+?$/); print "$_\n"}' | wc -l
Is it something related to sygwin or activesatate Perl I use? Or I am missing something?bash: syntax error near unexpected token `)'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: syntax error near unexpected token `)'
by zwon (Abbot) on May 20, 2012 at 17:03 UTC | |
by vit (Friar) on May 20, 2012 at 17:05 UTC | |
by zwon (Abbot) on May 20, 2012 at 17:17 UTC | |
by ikegami (Patriarch) on May 21, 2012 at 02:24 UTC | |
|
Re: syntax error near unexpected token `)'
by tobyink (Canon) on May 20, 2012 at 17:05 UTC | |
by vit (Friar) on May 20, 2012 at 17:13 UTC | |
by aaron_baugher (Curate) on May 20, 2012 at 18:32 UTC | |
by jwkrahn (Abbot) on May 20, 2012 at 18:36 UTC | |
|
Re: syntax error near unexpected token `)'
by Anonymous Monk on May 20, 2012 at 19:23 UTC |