in reply to Re^2: How do i sort an numeric array without using sort function. Is ther any way to sort it just with loop in perl??
in thread How do i sort an numeric array without using sort function. Is ther any way to sort it just with loop in perl??
You have written my @sorted = sort_try (@unsorted); but your sort_try sub doesn't return anything (and it also ignores its arguments but that's a different matter). Try reading perlsub for the basics.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How do i sort an numeric array without using sort function. Is ther any way to sort it just with loop in perl??
by Tabish (Acolyte) on Nov 02, 2017 at 10:18 UTC | |
by Random_Walk (Prior) on Nov 02, 2017 at 11:22 UTC |