PrintEvents(3pm)

πŸ’– PrintEvents(3pm) πŸ’–

okay bestie, welcome to XML::Handler::PrintEvents β€” it's the PerlSAX handler that just... prints stuff. for debugging. iconic behavior honestly ✨


🌸 NAME 🌸

XML::Handler::PrintEvents β€” prints PerlSAX events, purely for the debugging vibe πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

use XML::Handler::PrintEvents;

my $pr = new XML::Handler::PrintEvents;

that's literally it. two lines. we love a low-effort queen πŸ‘‘


✨ DESCRIPTION ✨

so this PerlSAX handler does one thing and it does it flawlessly: it takes every PerlSAX event it receives and prints them to STDOUT. that's the whole job. main character energy, zero side quests πŸŽ€

when is this useful? when you're debugging PerlSAX filters, bestie 😭 it's giving "let me see what's actually happening in here." no cap.

and the range?? it supports all PerlSAX handlers, including ignorable_whitespace. yes, even that one. we didn't forget her 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Enno Derksen is the original author. respect the OG πŸ™Œ

bug reports, hints, tips, and suggestions go to T.J. Mather at <tjmather@tjmather.com> β€” send him your thoughts, he's waiting πŸ’Œ


fr fr, if you're stuck in a PerlSAX filter and nothing makes sense, just point this thing at it and watch the events roll by. that's the whole hack. iykyk 🧚

and that's the tea, bestie πŸ’œ this little page came to you via perl v5.32.0, dated 2021-01-07, and it's filed under PrintEvents(3pm). slay, go debug something gorgeous 🌈⭐

πŸ“¦ where this page comes from