Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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.

Replies are listed 'Best First'.
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?

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2023-12-06 04:37 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (29 votes). Check out past polls.