in reply to Re: avoid warnings in Copying and Substituting Simultaneously
in thread avoid warnings in Copying and Substituting Simultaneously
$totcalls += [ $layer3 =~ m/^\s*([0-9]+) Active/ ]->[0];
needlessly creates an array and a reference. Use
$totcalls += ( $layer3 =~ m/^\s*([0-9]+) Active/ )[0];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: avoid warnings in Copying and Substituting Simultaneously
by JavaFan (Canon) on Oct 22, 2008 at 20:11 UTC |