in reply to Re: how to capture the max value of the array
in thread how to capture the max value of the array
sorry on the mismatch. it was a typo on the input source. can you show me please the full code in using the while(<>){...} ? i only pasted a part of the code that lists down operation between the PIN vcc until END vcc.
input sourcemy code :PIN vcc aaaa bbbb Port LAYER m2 ; END CCC DDD Port LAYER m1 ; END EEE FFF Port LAYER m0 ; END END vcc
if (/PIN vcc/../END vcc/) { if(/LAYER\s+m(\S+)/) { push(@num, $1); print "@num" ; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to capture the max value of the array
by AnomalousMonk (Archbishop) on May 20, 2016 at 05:46 UTC |