Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Syntax error in using do-until loop: How can I fix it?by aitap (Curate) |
on Jul 16, 2012 at 10:22 UTC ( [id://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
|
|