Anonymous user
String comparison: Difference between revisions
m
→{{header|AWK}}
m (→{{header|AWK}}) |
m (→{{header|AWK}}) |
||
Line 17:
=={{header|AWK}}==
In awk, the string matching operators are case sensitive, and the behaviour of the comparative operators depends on the locale being used. Be very careful with numeric strings, because whether they will be treated as numeric values or strings depends on how the values were obtained, and on which awk interpreter is being used. Numeric strings obtained from the input source, will be treated as numeric values, when compared with other strings containing numeric values. Strings valued defined as constants using
<lang awk>BEGIN {
|