Michael G Schwern wrote:



There's other issues with this code.  For one, its not portable.  You're
using a system command (touch) and you're assuming Unix filepath syntax.
Another is your errors do not include $! which is the reason the command
failed (no such file or directory).

Additionally, 0333 is writeable and executable.  You want 0500, executable
and readable (not writable) only by this user.

Finally, as I mentioned in another post on this thread, stay out of the
system temp directory.  Stick to t/.



This was meant to be a quick example, not rigorously thought-out code. (And looking back at it, the absence of rigor even at that level is glaringly apparent.) But I'll take your suggestions under advisement when I start to work on the real code.

Thanks to all who responded.

jimk

Reply via email to