in reply to retrieving in the correct order
Also, you're initializing @array2 with qq() which makes a string, not a list of values. You want either qw( list of words ) or ('word', 'word', 'word') or (value, value, value) without the qq. If you think of your identifiers as words, then you should use lt/eq/gt instead of </==/> when comparing them, too.
--
[ e d @ h a l l e y . c c ]
|
|---|