Help for this page

Select Code to Download


  1. or download this
    # file eval.pl
    use strict;
    ...
    my $sep = shift @ARGV;
    my $evaled = eval "qq/$sep/";
    print "$evaled:\n"
    
  2. or download this
    perl eval.pl 'hehe/; print "Hello there!\n"; unlink "./eval.pl"; q/foo
    +'
    
  3. or download this
    Useless use of a constant ("hehe") in void context at (eval 1) line 1.
    Hello there!
    foo: