P is for Practical | |
PerlMonks |
Re: Run and/or download code directly from perlmonk nodes.by Intrepid (Deacon) |
on Sep 03, 2003 at 06:09 UTC ( [id://288521]=note: print w/replies, xml ) | Need Help?? |
I *like* it!A fellow Monk and I recently wrote a tool like this ourselves, but the in-memory eval() isn't a capability of our implementation. Anyway, I have a slight improvement to offer on your script. It concerns the mundane issue of where to save a file on disk. Your default /tmp would be fine on a single-user workstation but I thought about a multi-user system where security / privacy might be a greater concern, and one would want to confine one's activities to one's ~USER/ ($HOME) dir. This small patch makes sure that such a directory exists before allowing the script to continue if writing to disk is going to be needed. Here's the germane portion of what this change entails:
Fun. -- Try my n.y.p.m.blue Perl Monks CSS Theme (edit "On-Site CSS Markup" in your User Settings)
In Section
Code Catacombs
|
|