In addition to the more important observation that moritz made, I can never understand why so often do people seem to feel the need to reference only to dereference like that; i.e. if we assume we do want to slurp the file all at once, then
print +(<$file>)[-1]; # would do!
In reply to Re^3: Read the last line in a text file
by blazar
in thread Read the last line in a text file
by ganilmohan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |