![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
sorting with substringsby JFarr (Sexton) |
on May 25, 2006 at 21:35 UTC ( #551715=perlquestion: print w/replies, xml ) | Need Help?? |
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
Back to
Seekers of Perl Wisdom
|
|