Help for this page

Select Code to Download


  1. or download this
    if ($x) {
        prnt "Hello";
    } elseif {
        print "Goodbye"
        $x = 1;
    }
    
  2. or download this
    String found where operator expected at tmp.pl line 4, near "prnt "Hello""
  3. or download this
    String found where operator expected at tmp.pl line 4, near "prnt "Hel
    +lo""
            (Do you need to predeclare prnt?)
    syntax error at tmp.pl line 4, near "prnt "Hello""
    ...
            (Missing semicolon on previous line?)
    syntax error at tmp.pl line 7, near "$x "
    tmp.pl had compilation errors.