||I do a lot of one-liners, and often want Autoflush turned on.
for each is a bit of a pain, so I wrote this so I can do
perl -MAF -e'...'
I could always do
but that's probably very inefficient.
The name is short, since calling it "Acme::Autoflush" would pretty well defeat the purpose.
# that's all there is to this module; we just
# want STDOUT to autoflush. If a different
# handle is selected when we get here, well,
# too bad =)
# As merlyn pointed out, I didn't need a BEGIN here...
# USAGE: perl -MAF -ne'whatever-you-want'
# perl -MAF -pe'whatever'
# I don't even need this 1, since the result of the
# assignment is 1, but I think it's cleaner to leave this
Back to Code Catacombs