$ ./mytest.pl Your inventory contains: ( axe sword shovel ) Your storage contains: ( knife wand bow ) Which item would you like to deposit? (blank to quit): swwrd Please input a valid answer: ( axe sword shovel ). Which item would you like to deposit? (blank to quit): sword Your inventory contains: ( axe shovel ) Your storage contains: ( knife wand bow sword ) Which item would you like to deposit? (blank to quit): axe Your inventory contains: ( shovel ) Your storage contains: ( knife wand bow sword axe ) Which item would you like to deposit? (blank to quit): shovel Now inventory and storage respectively contain: ( ) ( knife wand bow sword axe shovel )