Perl Monk, Perl Meditation | |
PerlMonks |
Array construct and foreach loopby perl_5eeker (Novice) |
on Apr 04, 2019 at 15:54 UTC ( [id://1232155]=perlquestion: print w/replies, xml ) | Need Help?? |
perl_5eeker has asked for the wisdom of the Perl Monks concerning the following question: Hello experts I am trying to run foreach loop on each element of array which looks like below (from Dumper) $VAR1 = 'abc def xyz'; foreach considers the above as a single element, I have tried splitting the array but I am missing something simple here, your help is much appreciated.
Back to
Seekers of Perl Wisdom
|
|