I have an array with values 33, 32, 8, 100.
How can I find the maximum and minimum value in this array?
Do I need to include any special libraries?<
Use the List::Util module, which it is recommended to get acquainted with anyway, just like List::MoreUtils:
List::MoreUtils
D:\ :: perl -MList::Util=max -lwe "print max 324, 43, 53, 3532, 43" 3532 D:\ :: perl -MList::Util=min -lwe "print min 324, 43, 53, 3532, 43" 43