Help for this page

Select Code to Download


  1. or download this
    for (foo()) { bar() }    # List
    while (foo()) { bar() }  # Scalar
    if (foo()) { bar() }     # Scalar
    print(foo())             # List
    length(foo())            # Scalar
    
  2. or download this
    for ($var) {             # Scalar
       s/^/[/;
       s/$/]/;
    }