saiprathapreddy has asked for the wisdom of the Perl Monks concerning the following question:
Actual : @Foods=qw(abc abc1 abc2 abc_1 abc_2 abc01_1);
After sorting it's printing like this
:
abc abc01_1 abc1 abc2 abc_1 abc_2
But it should be like this
:
abc abc_1 abc_2 abc01_1 abc1 abc2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sorting an array if sting having _
by choroba (Cardinal) on Dec 12, 2013 at 11:05 UTC | |
by saiprathapreddy (Initiate) on Dec 12, 2013 at 11:07 UTC | |
by hdb (Monsignor) on Dec 12, 2013 at 11:22 UTC | |
by choroba (Cardinal) on Dec 12, 2013 at 11:30 UTC | |
by saiprathapreddy (Initiate) on Dec 12, 2013 at 12:05 UTC | |
| |
|
Re: sorting an array if sting having _
by wind (Priest) on Dec 12, 2013 at 18:10 UTC |