We don't bite newbies here... much | |
PerlMonks |
Re: Nested Loop Problemsby ww (Archbishop) |
on May 02, 2012 at 20:46 UTC ( [id://968538]=note: print w/replies, xml ) | Need Help?? |
See split. Your message (a warning, not an error, IIRC) reflects split's dis-inclination to let you split to a scalar ($list). You'll also want to read chomp for how to get those newlines out of your way. Suggest you start with something like the following, which (sorta') follows your scheme:
Then write code to process @list, pushing its elements onto @w,@x,@y,@z. Use the docs. As a guru once remarked, "You can't just make stuff up and expect the computer to understand." Update: typos fixed (in just 3 tries); clarification about the "error" in the 1st para.
In Section
Seekers of Perl Wisdom
|
|