Think about Loose Coupling | |
PerlMonks |
Re: Next Line Assigning to A Scalarby GotToBTru (Prior) |
on Oct 29, 2014 at 20:38 UTC ( [id://1105553]=note: print w/replies, xml ) | Need Help?? |
What form will the output take? Sounds like you want to store color alternatives. How will you use those alternatives? Will you need to sort them? Can there be more than one black car? Do you need to store the number after the color somewhere? Your post title talks about assigning to a scalar, but I have trouble imagining that as a useful thing. Perhaps use a hash instead? Put the following right after your print statement (inside the foreach loop):
What kind of vehicles are available?
Updates: minor typos and omissions fixed
1 Peter 4:10
In Section
Seekers of Perl Wisdom
|
|