Help for this page

Select Code to Download


  1. or download this
    my $input = '(?{ print("Hello World!\\n") })';
    
    ...
       '' =~ /$input/;
    };
    warn("Died: $@") if $@;
    
  2. or download this
    Without "use re 'eval';":
    Died: Eval-group not allowed at runtime, use re 'eval' in regex m/(?{ 
    +print("Hello World!\n") })/.
    
    With "use re 'eval';":
    Hello World!