Help for this page

Select Code to Download


  1. or download this
    say( 
        '$count = () = ( wantarray() ) gives ',
    ...
        ? "List" : "Scalar", 
        " context to wantarray()." 
    );
    
  2. or download this
    $count = () = ( wantarray() ) gives List context to wantarray().
    $count = ( wantarray() ) gives Scalar context to wantarray().