$fld0 = "abcX"; $fld0 = "abcX\n";
Another possibility uses substr, which will not match the \n:
if (substr($fld0, -1, 1) eq 'X') { next }
In reply to Re: syntax question
by toolic
in thread syntax question
by rruser
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |