|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: Syntax error in using do-until loop: How can I fix it?by aitap (Chaplain) |
| on Jul 16, 2012 at 10:22 UTC ( #981998=note: print w/ replies, xml ) | Need Help?? |
|
The opening vurly bracket ({) that matches the closing one (}) on line 22 is placed on line 11, so your code between these lines looks like this: { some; code; } (while my $word =~ /^.*$/) I guess that you missed closing curly bracket (}) after line 13: and the one on line 24 is not needed. UPD: you can split words easier using split:
Sorry if my advice was wrong.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||