http://qs321.pair.com?node_id=551715

JFarr has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks,
I'm still new to Perl and have a sorting question.
I've tried everything I can think of, and have come up with nothing.
I have an array, consisting of
workstation_1_1, workstation_1_2, voiceserver_1_2, voiceserver_1_1 ect....

Now I would like to be able to sortthis array by the
digits so my output would be
workstation_1_1
voiceserver_1_1
workstation_1_2
voiceserver_1_2

I know how to do this in C++ and Java, but with Perl....NO IDEA.
Is there such an thing as a struct in PERL?
Thanks