in reply to array newbie...(sigh)

I'm guessing that your input is coming to you with an extra newline (\n) character that you need to get rid of. Try

chomp(@h); @bob = @h; #though not sure why you copy the array ;)

..Guv