in reply to Re: saving a file
in thread saving a file

Why do you unlink $scnt and $jscd, only to immediately open these files in clobber mode?
Could be a broken attempt at the unixy "open, unlink, ..., close" temp-file pattern...

...but more likely, it's an unnecessary "cleansing" of the working directory before creation of those files ;)

-David