http://qs321.pair.com?node_id=180578


in reply to [untitled node, ID 180576]

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.

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