Say you are reading in some date line by line, is it possible to do an if command that that looks if it's the last line?
if ($data = Last line){ print "This is the last line\n"; }
And a similar if it's a blankline (containing 0 characters). But I feel that's more easy.
In reply to Detecting last line and blank line by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |