Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

syntax error near unexpected token `)'

by vit (Pilgrim)
on May 20, 2012 at 16:55 UTC ( #971498=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    cat file.txt |  perl -ne '{chomp; ($a, $b) = split/\s+/; $s = "$a $b";
    + next if($s !~ /^\w+\'?\w+?\s+\w+\'?\w+?$/); print "$_\n"}' | wc -l
  2. or download this
    bash: syntax error near unexpected token `)'

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://971498]
Front-paged by Corion
marioroy I once fell asleep while drive and had no collection on how I exited the ramp. Then called my wife not knowing where I was totally lost.
marioroy At a large firm, had to awaken a security guy a few times so that nobody would catch him sleeping.
marioroy On a large dairy farm, almost went off the road with a 10 wheeler from exhaustion. On the farm, almost went off the silo with a big tractor. At the Fransiscan monastery, almost slipped off the dome while painting it.
[marioroy]: In Saudi Arabia caught fire but didn't burn. I think angels exist.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2017-05-29 08:22 GMT
Find Nodes?
    Voting Booth?