Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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.

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://153865]
help
Chatterbox?
[MidLifeXis]: Nothing like encouraging the success of a rollout by neutering your current support structure without a reasonable staffed and trained replacement structure.
[MidLifeXis]: Speaking of which, anyone know of Perl positions in the MKE area (or slightly west)?
[Corion]: MidLifeXis: Oh, enjoying the show from the sidelines I see...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2017-03-23 12:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (286 votes). Check out past polls.