Let's say you want to unlink
foobar.tm and you pass
foobar to you
DeleteFile routine. Inside that routine,
$FileName first gets
foobar, then
.tm is added, then
foobar.tm.tm is unlinked.
What I'm trying to say is, Unless your file has
2 extensions (both being
.tm), you should drop that
$t in the
unlink line.
Oh yeah, listen to what
azatoth has to say about
strict and
-w.
Update courtesy of Arguile: Use double quotes (as in
") instead of single quotes (as in
'). The double quotes interpolate properly, the single ones use literal context.
Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.