in reply to Re^2: how to capture the max value of the array
in thread how to capture the max value of the array

if (/PIN vcc/../END vcc/) {
           if(/LAYER\s+m(\S+)/) {
             push(@num, $1);
             print "@num" ;

Only some schematic suggestions. Basically, follow the advice given above by haukex:

If you're still having problems, please show us some brief and complete working code and associated input data and tell us how the output produced falls short of what you need.


Give a man a fish:  <%-{-{-{-<