more useful options | |
PerlMonks |
Re: chunking up texts correctly for online translationby jwkrahn (Abbot) |
on Jun 15, 2019 at 00:20 UTC ( [id://11101375]=note: print w/replies, xml ) | Need Help?? |
You are assigning a list to a scalar variable. This only works because there is only one element in the list. The correct way is to assign a scalar value to a scalar variable:
Or a list to a list:
That code is only comparing $prompt1 to a lower case "y" but not to an upper case "Y". If you want to compare to both lower and upper case you can do the following:
Or:
Or:
In Section
Seekers of Perl Wisdom
|
|