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.
In reply to Re^3: How do i sort an numeric array without using sort function. Is ther any way to sort it just with loop in perl??
by hippo
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??
by Tabish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |