What is the correct way to code the following?
my $bigseqnum = int($seqnum) + 10000000 or write_line("non integer sequence number");
Sometimes $seqnum is an integer followed by some character data. In this case the leading number is used and trailing characters discarded.
The above works ok for this, it uses the leading number adds 10Mil to it and writes out the warning message.
BUT it is also writing the following to the consul:
Argument "\x{31}\x{30}..." isn't numeric in int at ppm.pl line 149.
Please, what is the right way to code the statement, and how can we avoid the consul warning message.
In reply to Style and warnings by api
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |