Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Executing text

by BazB (Priest)
on Nov 26, 2003 at 10:06 UTC ( #310274=note: print w/replies, xml ) Need Help??


in reply to Executing text

As duff suggests, you should read perlsec.
Just to stress the point: accepting input from an untrusted source - especially when that input will be eval'ed by perl - can be a serious security hole.

Imagine if the input was `rm -rf /`...


If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.

Replies are listed 'Best First'.
Re: Re: Executing text
by Arbogast (Monk) on Nov 26, 2003 at 15:25 UTC
    Sounds like you want to learn the eval command in Perl, and might want to take a look at Text::Template.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2023-12-04 06:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (21 votes). Check out past polls.

    Notices?