Stripper(3)

πŸ“¦
version 0.22 Β· 2 versions
, in fedora 43

πŸ’– 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