Help for this page

Select Code to Download


  1. or download this
    $foo = "bar";
    print $foo, "\n";
    
  2. or download this
    print($foo,"\n");
    
  3. or download this
    ($a,$b,$c) = (1,2,3);    # started off easy
                             # does the expected
    
  4. or download this
    $a,$b,$c = (1,2,3);      # left side acts weird
    
  5. or download this
    $a,$b,$c = 1,2,3;
    
  6. or download this
    print(1),print(2),print("\n");
    
    # output
    # 12          - followed by newlin
    
  7. or download this
    print 1;
    print 2;
    print "\n";
    
  8. or download this
    print 1, print 2, print "\n";
    
    # output
    [blankline]
    2111
    
  9. or download this
    print(1),print(2),print("\n");