Stripper(3)
π Stripper(3) β the manual page, but make it make sense π
okay so bestie, welcome to the <strong>User Contributed Perl Documentation</strong> page for Stripper(3) β yes that's the whole vibe, let's go β¨
πΈ NAME πΈ
Pod::Stripper β strip all pod, and output what's left. π
β¨ SYNOPSIS β¨
literally just run it like this, no cap:
$>perl Stripper.pm
or, if you're feeling like the main character:
#!/usr/bin/perl -w
use strict;
use Pod::Stripper;
my $Stripper = new Pod::Stripper();
$Stripper->parse_from_filehandle(\*STDIN) unless (@ARGV);
for my $ARGV (@ARGV) {
$Stripper->parse_from_file($ARGV);
}
π¦ DESCRIPTION π¦
This be Pod::Stripper, a subclass of Pod::Parser. It parses perl files, strips the pod all the way out, and dumps whatever's left β presumably the code, bestie β to wherever you point it at, exactly like you do with Pod::Parser. π
Could you subclass it? Probably. Would you want to? Author says they don't see why, and honestly, vibe check says the same. π
π― MOTIVATION π―
ngl the author basically re-wrote Pod::Stripper on two separate occasions, and knows at least 2 other people who'd use it, so it seemed like a nice lil addition. iconic behavior fr fr β¨
"perl -MPod::Stripper -e"Pod::Stripper->new()->parse_from_file(shift)""
" Stripper.pm"
π¦ EXPORTS π¦
None. Zero. Nada. This one's object oriented β at least, that's the impression the author is under. ππ
π SEE ALSO π
"Pod::Parser" and Pod::Parser, esp. the "input_*" and "output_*" methods. iykyk π«Ά
π¨ CAVEAT π¨
bestie listen up, this is the important part π«Ά
This module will correctly strip out β get rid of β hidden pod, and it preserves hiddencode. But like <strong>all</strong> pod parsers except perl, it will get fooled by pod in heredocs (or things like that). no cap, it just will. π
see perlpod and read Stripper.pm for more info. π
π AUTHOR π
D.H. aka crazyinsomniac|at|yahoo.com. that's the whole author line, periodt. π
π LICENSE π
Copyright (c) 2002 by D.H. aka crazyinsomniac|at|yahoo.com. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π
π«Ά PROPS π«Ά
props to all the perlmonks at perlmonks.org, and especiall danger and the ones who showed interest in Pod::Stripper π
http://perlmonks.org/index.pl?node=Pod::Stripper
The Following is more interesting if you read Stripper.pm raw π
π§ TEST CASE FOLLOWS β NOT POD NOR CODE π§
(this next bit is a whole journey, buckle up)
==head2 HEY THIS POD TOO (REALLy, == is valid, although some parsers might disagree)
podchecker will not complain β¨
ABTEST print "THIS IS HIDDEN POD";
CUT
had to make sure
I AM INSIDE A HEREDOC
WHERE ARE YOU?
I AM HIDDEN POD INSIDE A HEREDOC warn "really, I am"
BOO
but hey, if the pod inside a heredoc gets eaten by a pod parser (as it shoulD) I see no problem here π
WELL IF THIS WASN'T AFTER "__END__" "this would still be hidden pod";
THIS REALLY IS AN UGLY HACK
yes, it is π
and that's the whole page, bestie β this was perl v5.42.0, dated 2025-07-25, and it's the Stripper(3) page, slay, go strip some pod πβ¨
π¦ where this page comes from
- fedora 43: perl-Pod-Stripper 0.22-28.fc43 Β· 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