Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Run and/or download code directly from perlmonk nodes.

by belg4mit (Prior)
on Mar 24, 2002 at 03:03 UTC ( #153865=note: print w/ replies, xml ) Need Help??


in reply to Run and/or download code directly from perlmonk nodes.

I would highly recommend incorporating Safe into this; it's surprisingly easy, an informative module, etc. And perhaps an option for B::Deparse ;-)

--
perl -pe "s/\b;([st])/'\1/mg"


Comment on Re: Run and/or download code directly from perlmonk nodes.
Re: Re: Run and/or download code directly from perlmonk nodes.
by Dog and Pony (Priest) on Mar 24, 2002 at 11:14 UTC
    Very good ideas (++ indeed)!

    As might be guessed, this all started with a oneliner to scratch an itch, that just swelled (just... one... more... feature...) so I totally forgot about Safe. /me hangs head in shame. B::Deparse is of course also a great idea, since at least my main use is for obfus.

    Maybe I will have the time later today. Thanks! :)

    Update: I have decided to not implement Safe for now, at least. Reason for this is simple: I would have to allow eval as default, as so many nodes I use it on are obfus, and eval sets Safe aside anyways. When eval is not involved, you can usually determine if the script is safe anyways. Or you can just mirror the code, or deparse it - and if you don't trust it, don't run it (which is the same if you copy/paste also). If someone wants to patch the program with Safe, I'd be more than happy to incorporate it, but it is no feature I feel I need myself.


    You have moved into a dark place.
    It is pitch black. You are likely to be eaten by a grue.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://153865]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2014-08-20 16:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (119 votes), past polls