Help for this page

Select Code to Download


  1. or download this
    for ($scalar) {...}
    for (funcReturningScalar()) {..}
    for ($hash{of}{some}{arbitrar}{size}{returning}{scalar}) {...}
    for($$hash{returning}{refToScalar}) { ... }
    # Many more
    
  2. or download this
    for ($scalar) {
        # do stuff;
    }
    
  3. or download this
    given ($scalar) {
        when <<always>> {
            # do stuff;
        }
    }
    
  4. or download this
    given ($scalar) {
        default {
            # do stuff;
        }
    }