PPI::St...t::Null(3)
β¨ PPI::Statement::Null β¨
okay bestie, welcome to the manual page for PPI::Statement::Null β and yeah, the name's giving "who?" but stay with me, she's iconic in her own little way π
πΈ NAME πΈ
PPI::Statement::Null β a useless null statement. like, canonically useless. the docs said it, not me π
π¦ SYNOPSIS π¦
my $foo = 1;
; # <-- Null statement
my $bar = 1;
see that lone lil ; just vibing in the middle there? yeah. that's her. that's the whole girl π
π INHERITANCE π
PPI::Statement::Null
isa PPI::Statement
isa PPI::Node
isa PPI::Element
the whole family tree, no cap. she inherits from PPI::Statement, which inherits from PPI::Node, which inherits from PPI::Element. three generations of slay π
π DESCRIPTION π
so PPI::Statement::Null is a utility class, right? and her whole job β her entire purpose β is to handle the situation where PPI runs into a naked statement separator. just a bare semicolon, out there, exposed, no statement attached π
now here's the tea, and it's a technical tea so listen up: strictly speaking, the semicolon is a statement separator, not a statement terminator. that's the actual grammar truth. but PPI treats a semicolon as a statement terminator under most circumstances. so like... it's a separator, but PPI mostly calls it a terminator. both things are true. it's giving nuance π§
anyway β and this is the important part β the null statement has no purpose, and it can be safely deleted with no ill effect. literally delete her, nothing bad happens, the vibe is untouched. she is that girl who leaves the group chat and everyone keeps chatting π«Ά
π₯ METHODS π₯
PPI::Statement::Null has no additional methods beyond the default ones provided by PPI::Statement, PPI::Node and PPI::Element. that's it. that's the whole method section. she's not adding anything to the conversation, and honestly? respect π
π«Ά SUPPORT π«Ά
see the support section in the main module. iykyk π
β AUTHOR β
Adam Kennedy <adamk@cpan.org> β the actual legend who made her β¨
π 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.
bestie reminder: it's free software, same terms as Perl itself, and the full license text lives in the LICENSE file that ships with the module. read it, it's good for you πΈ
okay that's the whole page, no skips, every last detail accounted for π and for the cute sign-off: this lil doc came from perl v5.42.0, dated 2026-01-17. go forth and delete your null statements, they won't miss you π¦π
π¦ where this page comes from
- fedora 44: perl-PPI 1.284-2.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms