Hi,
A simplest way u can try...
@arr = (1..10); print sort($arr[$#arr]-1);
Regards
Franklin
Don't put off till tomorrow, what you can do today.
In reply to Re: How to get 2nd highest value from an array?
by l.frankline
in thread How to get 2nd highest value from an array?
by rsiedl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |