Help for this page

Select Code to Download


  1. or download this
    print 3 . 5;  # 35
    print 3.5;    # 3.5
    
  2. or download this
    %foo = (bar => "xyzzy")
    print "-$foo{bar}-";   # -xyzzy-
    print "-$foo {bar}-";  # - {bar}-
    
  3. or download this
    $a = 1;
    print $a - -5;  # 6
    ...
    
    print q qhelloq;  # hello
    print qqhelloq;   # qqhelloq
    
  4. or download this
    $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}}
    split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/