P is for Practical | |
PerlMonks |
Re^8: Can't figure out how to include LAST member of the arrayby afoken (Chancellor) |
on Feb 10, 2021 at 20:27 UTC ( [id://11128196]=note: print w/replies, xml ) | Need Help?? |
Don't bother the cat. A simple I/O redirection is sufficient here:
And as a bonus, the version without cat also works on Windows. See also Re: Perl output and uniq. Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|