- or download this
tie my @nums, 'Tie::File', $filename;
- or download this
min(@nums);
max(@nums);
- or download this
$ cat pm_num_list.txt
123
...
12e-3
-12e3
-123
- or download this
#!/usr/bin/env perl
...
print 'Max: ', max(@nums), "\n";
untie @nums;
- or download this
Min: -12e3
Max: 12e3