Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Length of strings in an arrayby NetWallah (Canon) |
on Sep 20, 2020 at 18:02 UTC ( [id://11121967]=note: print w/replies, xml ) | Need Help?? |
Here is a more "perl-ish" way to do this, using a perl "array" (@seq).
"push" adds stuff into the back of an array, while "pop" removes it. Note - this code is not limited to 4 entries - it requires an END to be entered after the last entry. "Imaginary friends are a sign of a mental disorder if they cause distress, including antisocial behavior. Religion frequently meets that description"
In Section
Seekers of Perl Wisdom
|
|