PPI::Statement::When(3pm)

PPI::Statement::When3pm

A when statement

Usage

  foreach ( qw/ foo bar baz / ) {
      when ( m/b/ ) {
          boing($_);
      }
      when ( m/f/ ) {
          boom($_);
      }
      default {
          tchak($_);
      }
  }

Inheritance

  PPI::Statement::When
  isa PPI::Statement
      isa PPI::Node
          isa PPI::Element

Overview

"PPI::Statement::When" objects are used to describe when and default statements, as described in perlsyn.

Methods

"PPI::Structure::When" has no methods beyond those provided by the standard PPI::Structure, PPI::Node and PPI::Element methods.

To do

- Write unit tests for this package

Support

See the support section in the main module.

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 8 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13
  9. Arch

Author

Adam Kennedy <[email protected]>

From perl-ppi 1.291-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.