Moose:...String(3pm)
π Moose::Autobox::String β the String role π
okay bestie, gather round, because we're talking about Moose::Autobox::String from the Moose:...String page, and it's giving string but make it fashion. This is the String role, and she's serving version 0.16. no cap. π
β¨ VERSION β¨
version 0.16 β that's the one, that's the era we're living in. π¦
πΈ SYNOPSIS πΈ
so like. you load Moose::Autobox and suddenly your plain little string literals have main character energy and can call methods on themselves. watch:
use Moose::Autobox;
"Hello World"->uc; # HELLO WORLD
literally that's it."Hello World"walked in, called->ucon itself, and left asHELLO WORLD. ate. π
π DESCRIPTION π
This is a role to describes a String value.
(and yes, bestie, we're keeping that exact sentence β the original said "describes" and we're not about to edit the queen's grammar. iconic behavior, honestly. π)
π§ METHODS π§
here's the whole roster, and no we are NOT skipping any of them, every single one gets her moment:
chompchopindexlclcfirstlengthreverserindexucucfirstsplitβ and she takes an argument, like so:
$string->split($pattern);
wordsβ this is equivalent to splitting on space. so like, every space is a lil break point and you get all the words back. πlinesβ this is equivalent to splitting on newlines. same vibe, but the split happens on newlines instead. πΈmetaβ the meta method is on the list too. it's there. it's included. periodt. π
π₯ SUPPORT π₯
got bugs? (not the cute kind π) bestie, submit them through the RT bug tracker at <https://rt.cpan.org/Public/Dist/Display.html?Name=Moose-Autobox> β or you can email <bug-Moose-Autobox@rt.cpan.org>.
there's also a mailing list for users of this distribution, hanging out at <http://lists.perl.org/list/moose.html>. come vibe. β¨
and there's an irc channel for users of this distribution too, at #moose on irc.perl.org <irc://irc.perl.org/#moose>. pull up, say hi. π«Ά
π AUTHOR π
Stevan Little <stevan.little@iinteractive.com>
(we love a legend. we stan. π)
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2006 by Infinity Interactive, Inc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
okay so basically: it's free, you can share it, you can remix it, same terms as Perl 5 itself. slay and be responsible. π
and that's the whole page, bestie!! π this was perl v5.34.0, dated 2022-06-15, for Moose:...String(3pm) β tysm for reading, mwah, go call ->uc on something. π¦β¨
π¦ where this page comes from
- debian bookworm: libmoose-autobox-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmoose-autobox-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmoose-autobox-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmoose-autobox-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmoose-autobox-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms