Help for this page

Select Code to Download


  1. or download this
    sub foo {
      wantarray() ? 10 : 1;
    ...
    # outputs 
    Scalar context: 1, 1
    List context: 10, 10