You get a gold star for soliciting a code reveiw. Getting people to look over one's code is a real help to learning a new language.
You don't have any subs in this script? Okay, it's only 35 lines or so of actual code, but it could still be broken up into more logical chunks. I'd write subs for tempfile creation, appending a file to the tempfile, and printing a file backwards.
I see no "strict" or "warnings" here. You'll want those.
--
F
o
x
t
r
o
t
U
n
i
f
o
r
m
Found a typo in this node? /msg me
% man 3 strfry
In reply to Re: Grade me! TAC
by FoxtrotUniform
in thread Grade me! TAC
by Frank_Zappa_lives
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |