Help for this page

Select Code to Download


  1. or download this
    sub test_wantarray{
       wantarray ? Y : N;
    ...
    
    print "Hello" . &test_wa . "World\n";
    print "Hello", &test_wa, "World\n";
    
  2. or download this
    HelloNWorld
    HelloYWorld
    
  3. or download this
    print "Hello", (wantarray ? Y : N), "World\n";
    
  4. or download this
    sub test_wantarray{
    wantarray ? @array: \@array;
    }
    
  5. or download this
          print "Hello", &test_wa, "World\n";
    
  6. or download this
    if (undef eq "")
    {
    ...
    {
     print "undef evaluates to zero in numeric context\n";
    }
    
  7. or download this
    $count = () = $s =~ /abc/g;