|Problems? Is your data what you think it is?|
Re: Syntax error in using do-until loop: How can I fix it?by jwkrahn (Monsignor)
|on Jul 16, 2012 at 18:18 UTC||Need Help??|
The /i and /s options are superfluous. That should just be s/\s//g or maybe s/\s+//g
The /i and /s options are superfluous.
Your pattern matches exactly four characters so the length will always be 4.
You are opening this file inside the loop so only the last word will be saved to the file.
$word is created here, at this point, using my so it will always be empty.
How can I fix it?
Something like this: