mvcorrea has asked for the wisdom of the Perl Monks concerning the following question:
($totcalls += $layer3) =~ s/^[\s+]([0-9]) Active.*/$1/; ....and the warning.... Argument "2 Active Layer 3 Call(s)" isn't numeric in addition (+) at ...there is some way to do a "cast to int" on the regex output, before assign the value to $totcalls? To get rid of the warning?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: avoid warnings in Copying and Substituting Simultaneously
by ccn (Vicar) on Oct 22, 2008 at 17:17 UTC | |
by mvcorrea (Novice) on Oct 22, 2008 at 17:27 UTC | |
|
Re: avoid warnings in Copying and Substituting Simultaneously
by ikegami (Patriarch) on Oct 22, 2008 at 17:25 UTC | |
|
Re: avoid warnings in Copying and Substituting Simultaneously
by jhourcle (Prior) on Oct 22, 2008 at 17:35 UTC | |
by ikegami (Patriarch) on Oct 22, 2008 at 17:58 UTC | |
by JavaFan (Canon) on Oct 22, 2008 at 20:11 UTC |