HTTP::...rMixin(3pm)

πŸ“¦
version 4.13 Β· 5 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

HTTP::OAI::MemberMixin β€” literally just attribute utility methods, bestie πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

okay so picture this: this little icon subclasses LWP::MemberMixin so it can hand you a whole set of attribute utility methods. that's the whole vibe. it's giving "inheritance but make it useful" πŸ¦‹


🌸 METHODS 🌸

  • $obj->_elem( FIELD [, VALUE ] ) β€” bestie just go read "_elem" in LWP::MemberMixin, that's where the real tea is πŸ«– (fr fr, it says "See" and it means it)
  • $obj->_multi( FIELD [, VALUE ] ) β€” same energy as "_elem", BUT πŸ‘€ if you hand it something that is not an ARRAY reference, it appends the value(s) you gave it. and when you call it in list context, it returns a list of all the items β€” every single one, no crumbs left behind πŸ˜­πŸ‘‘
ngl the ARRAY-reference vs not-ARRAY-reference distinction is doing a LOT of heavy lifting here, so read it twice. once for the vibe, once for the facts πŸ’–

and that's the page, bestie!! 🌈 this masterpiece is documented as perl v5.36.0, dated 2023-09-28 β€” iconic behavior from start to finish, periodt πŸ’œπŸŽ€

πŸ“¦ where this page comes from