If you use '==' to compare strings you will get error as below
Argument "sqlerrors" isn't numeric in numeric eq (==) at args.pl line 11, <FILE> line 1. Argument "sqlerrors" isn't numeric in numeric eq (==) at args.pl line 11, <FILE> line 1. Argument "othererrors" isn't numeric in numeric eq (==) at args.pl line 17, <FILE> line 1. Argument "missingfile" isn't numeric in numeric eq (==) at args.pl line 23, <FILE> line 1.
eq is for comparing strings; == is for comparing numbers.
== does a numeric comparison: it converts both arguments to a number and then compares them.
eq does a string comparison: the two arguments must match lexically (case-sensitive)
In reply to Re: Process File Different Way Based on Passed in Argument
by vinoth.ree
in thread Process File Different Way Based on Passed in Argument
by ChrisCK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |