PPI::St...t::Break(3)

πŸ’– PPI::St...t::Break πŸ’–

okay so bestie, welcome to the PPI::St...t::Break(3) page, from the User Contributed Perl Documentation ✨ (yes the title is literally truncated like that, that's not me being lazy, that's just the vibe of the man page header πŸŽ€)


🌸 NAME 🌸

PPI::Statement::Break β€” the statements that straight up leave, no goodbye, just exit the normal statement flow πŸ’…


✨ SYNOPSIS ✨

last;
goto FOO;
next if condition();
return $foo;
redo;

like... iconic behaviour honestly πŸ¦‹


🧚 INHERITANCE 🧚

PPI::Statement::Break
isa PPI::Statement
    isa PPI::Node
        isa PPI::Element

it's giving royal lineage, the whole family tree is here πŸ‘‘


πŸ’œ DESCRIPTION πŸ’œ

PPI::Statement::Break is here to represent statements that break out of the normal statement flow control. that's the whole job, that's the assignment, and it ate πŸ”₯

the basic types it covers are 'redo', 'goto', 'next', 'last' and 'return' ✨


πŸŽ€ METHODS πŸŽ€

ngl, PPI::Statement::Break has no additional methods beyond the default ones provided by PPI::Statement, PPI::Node and PPI::Element. that's it, that's the tea πŸ“

but!! it is expected to gain methods for identifying the line to break to, or the structure to break out of πŸ‘€ future plans bestie, watch this space.


πŸ’€ TO DO πŸ’€

  • Add the methods to identify the break target
  • Add some proper unit testing

(the unit testing one is so real 😭)


🫢 SUPPORT 🫢

See the support section in the main module. yep, that's the whole support section, go check the main module, it's got the goods πŸ’–


🌈 AUTHOR 🌈

Adam Kennedy <adamk@cpan.org> β€” absolute legend, we stan πŸ‘‘


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.


fr fr, that's the whole page β€” go forth and last responsibly πŸ’…

and that's a wrap on perl v5.42.0, dated 2026-01-17, straight from the PPI::St...t::Break(3) man page itself πŸŽ€βœ¨ bye bestie!! πŸ¦‹

πŸ“¦ where this page comes from