Dynamic Perl statements

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Larry Dare

    Dynamic Perl statements

    Simply put this is what I would like to do

    $str = "print \"this command \\n \" " ;

    $str();


    Doesnt work.

    Is there away to put together a perl command in a string and then
    execute the string.

    Much like Dynamic SQL?

  • Jürgen Exner

    #2
    Re: Dynamic Perl statements

    Larry Dare wrote:
    [...][color=blue]
    > Is there away to put together a perl command in a string and then
    > execute the string.[/color]

    Please see "perldoc -f eval"

    jue


    Comment

    Working...