The eval command executes a snippet of Perl code : eval « System Functions « Perl






The eval command executes a snippet of Perl code

     
#!/usr/bin/perl -w

eval("print \"Hello World\n\";" );

   
    
    
    
    
  








Related examples in the same category

1.Using eval to evaluate an expression
2.Using eval to test whether a function is implemented.
3.Behavior of eval.