http://www.perlmonks.org?node_id=11104610


in reply to Re: The error says the value is uninitialized, but it works anyway
in thread The error says the value is uninitialized, but it works anyway

The homework question just defines @colors and @drop and says to remove the things in drop from colors, that's it.
The code I posted does print @colors with out the items from @drop, but since I'm just learning this for the first time that's the only way I could think of to do it.
I'll keep playing with the things you suggested. Thank you for your help!