$totcalls += [ $layer3 =~ m/^\s*([0-9]+) Active/ ]->[0];
needlessly creates an array and a reference. Use
$totcalls += ( $layer3 =~ m/^\s*([0-9]+) Active/ )[0];
In reply to Re^2: avoid warnings in Copying and Substituting Simultaneously
by ikegami
in thread avoid warnings in Copying and Substituting Simultaneously
by mvcorrea
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |