in reply to Re^2: What is wrong in this code?
in thread What is wrong in this code?

but not use Perl modules
List::Util is a Core module, so there is no need to install it.