UR::Exit(3pm)

πŸ“¦
version 0.470 Β· 2 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– UR::Exit β€” the manual, but make it bestie πŸ’–

okay so, this is UR::Exit(3pm) from the User Contributed Perl Documentation section. She's a little module, she's a vibe, and she's here to help your app leave the party gracefully instead of just... bolting out the back door mid-sentence. ✨


🌸 NAME 🌸

UR::Exit β€” methods to allow clean application exits. that's it, that's the whole point, no cap. πŸ’…


✨ SYNOPSIS ✨

UR::Exit->exit_handler(\&mysub);

UR::Exit->clean_exit($value);

look at her. two lines. iconic. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

So basically: this module gives you the ability to perform certain operations before an application exits. like, you wanna do a lil something on the way out? that's the dream, and this is the module that's supposedly holding that dream down. 🫢


πŸ‘‘ METHODS πŸ‘‘

These methods provide exit functionality. (yes the heading says METHODS and then the first sentence also says methods. we love a self-referential queen. 🌈)

πŸ“ exit_handler

UR::Exit->exit_handler(\&mysub);

Specifies that a given subroutine be run when the application exits.

heads up bestie: (Unimplimented!) β€” yeah. it's not actually built yet. do not come for me, i'm just the messenger. 😭

🧚 clean_exit

UR::Exit->clean_exit($value);

Exit the application, running all registered subroutines.

and again, real talk: (Unimplimented! Just exits the application directly.) β€” so like, she says she'll run everything, but rn she just dips. no subroutines, no ceremony, straight out the door. πŸ’€

πŸ’œ death

Catch any die or warn calls. This is a universal place to catch die and warn if debugging.

okay that's actually lowkey powerful β€” one universal spot to catch all the dying and the warning, perfect for when you're deep in debug mode and everything is screaming at you. πŸ™ˆ

⭐ warning

Give more informative warnings.

yes. more info. less mystery. we stan an informative warning. ✨


πŸ”₯ SEE ALSO πŸ”₯


πŸŽ€ sign-off πŸŽ€

this lil page is running under perl v5.32.1, dated 2022-01-17, and it lives at UR::Exit(3pm) in the User Contributed Perl Documentation collection. bye bestie, exit cleanly (if you can β€” the module's still working on it πŸ’–) πŸ‘‘πŸ¦‹

πŸ“¦ where this page comes from