chitownclone
Programmer
A variable in my program is an AE Code ($aenum) that contains both numbers and letters, which are assigned via .dat file. Example $aenum is c15, c16, c17.
However, I can't get my if then to work and error when a newly input AE code is the same as an existing.
If ($aenum eq $aenum2) {
ERROR;
}
Use == works fine if its numeric, eq works fine if its all letters...but what do I have to do to make eq or == work when the variable contains both letters and numbers??
Thanks
However, I can't get my if then to work and error when a newly input AE code is the same as an existing.
If ($aenum eq $aenum2) {
ERROR;
}
Use == works fine if its numeric, eq works fine if its all letters...but what do I have to do to make eq or == work when the variable contains both letters and numbers??
Thanks