PPI::Statement::Given - A given-when statement
Contents
Copyright
Copyright 2001 - 2011 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl
itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.40.0 2025-01-12 PPI::Statement::Given(3pm)
Description
"PPI::Statement::Given" objects are used to describe switch statements, as described in perlsyn.
Inheritance
PPI::Statement::Given
isa PPI::Statement
isa PPI::Node
isa PPI::Element
Methods
"PPI::Statement::Given" has no methods beyond those provided by the standard PPI::Structure, PPI::Node
and PPI::Element methods.
Name
PPI::Statement::Given - A given-when statement
Support
See the support section in the main module.
Synopsis
given ( foo ) {
say $_;
}
To Do
- Write unit tests for this package
