Shipwright::Util(3)
okay bestie, pull up a chair because it's time for Shipwright::Util(3) β the user-contributed Perl doc that's basically a lil treasure chest of helper functions. no cap, it's a whole vibe. π
πΈ LIST πΈ
here's the rundown of everything this module is serving you.
β¨ General Helpers β¨
load_yaml,load_yaml_file,dump_yaml,dump_yaml_fileβ these four are literally just dropped in fromYAML::Tiny. that's it, that's the whole story, they came pre-loaded like a starter pack. πconfess_or_dieβ it's here! the docs don't spill any extra tea on it, it just sits in the list looking iconic. πparent_dirβ returns the dir's parent dir. heads up tho: the arg you pass in must be a dir path. ποΈrun_cmdβ a wrapper of therun3sub inIPC::Run3. πselect_fhβ a wrapper for theselectin core. πfind_moduleβ takes a perl modules name space and the name of a module in that space. it finds and returns the matching module name using a case insensitive search. for example:
find_module('Shipwright::Backend', 'svn');
# returns 'Shipwright::Backend::SVN'
find_module('Shipwright::Backend', 'git');
# returns 'Shipwright::Backend::Git'
and if there's literally no module matching your criteria? it returns undef. sad but true, bestie. π
π¦ PATHS π¦
shipwright_rootβ returns the root directory that Shipwright has been installed into. it uses%INCto figure out whereShipwright.pmis. sneaky smart, honestly. πshare_rootβ returns the'share'directory of the installed Shipwright module. currently this is only used to store the initial files in project. πuser_homeβ returns the current user's home directory. πshipwright_user_rootβ the user's own shipwright root, where we put internal files in. it's~/.shipwrightby default. plot twist: it can be overwritten by$ENV{SHIPWRIGHT_USER_ROOT}. π
π NAME π
Shipwright::Util - Util
yes, that's the name. yes, it's just "Util". she's lowkey mysterious like that. β¨
π AUTHOR π
sunnavy "<sunnavy@bestpractical.com>"
shoutout to the author, absolute legend, main character energy fr fr. π«Ά
π LICENCE AND COPYRIGHT π
Copyright 2007-2015 Best Practical Solutions.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
legal stuff, but make it cute β go forth and remix, bestie. π
and that's the whole page, bestie! this was perl v5.42.0 vibes, dated 2025-07-25, and you just finished reading Shipwright::Util(3) β slay, you ate that. periodt. π
πβ¨
π¦ where this page comes from
- fedora 43: perl-Shipwright 2.4.42-24.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