Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Executing code in a string

by gav^ (Curate)
on Jul 09, 2002 at 19:06 UTC ( #180578=note: print w/ replies, xml ) Need Help??


in reply to Executing code in a string

If you search for eval you'll find that eval $foo;
works...

gav^

Update: first time round it came out slightly more scathing than I intended. Apologies all round.


Comment on Re: Executing code in a string
Download Code
Re: Re: Executing code in a string
by samtregar (Abbot) on Jul 09, 2002 at 19:45 UTC
    If you don't have anything nice to say...

    -sam

        I'm just getting tired of mean-spirited replies to beginner questions. Sure, the guy could have found the solution to his problem by reading about eval, but he didn't. Instead he came and posted a question in a place that purports to be a good place to ask questions about Perl. It's not like he posted it to perl5-porters, after all.

        If you're going to answer a beginner's question I think you should do it with some respect. If you're not in the mood to politely point someone in the direction of the manual then just don't answer.

        Unless you were just joking... Um, in which case, hahahhaa.

        -sam

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2014-07-28 23:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (210 votes), past polls