Moose:...String(3pm)

πŸ“¦
version 0.16 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 ->uc on itself, and left as HELLO 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:

  • chomp
  • chop
  • index
  • lc
  • lcfirst
  • length
  • reverse
  • rindex
  • uc
  • ucfirst
  • split β€” 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. πŸ’–)


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