Types::Common(3)

๐Ÿ’– Types::Common ๐Ÿ’–

okay bestie, welcome to the one stop shop โœจ this is Types::Common(3), straight out of the User Contributed Perl Documentation, and it is literally the module that has everything you need in one place. no cap.


๐ŸŒธ STATUS ๐ŸŒธ

This module is covered by the Type-Tiny stability policy. so like, it's not going anywhere, it's committed, it's giving stable relationship energy ๐Ÿซถ


๐Ÿ”ฎ PLANNED FUTURE CHANGES ๐Ÿ”ฎ

In the future, this module may also export signature_for_func and signature_for_method. that's it, that's the tea โ˜• not yet, but possibly someday, iykyk.


โœจ DESCRIPTION โœจ

So here's the thing โ€” Types::Common doesn't provide any types or functions of its own. none. zero. it's not that kind of module. ๐Ÿ’…

Instead it's a single module that re-exports a whole friend group of stuff:

  • All the types from Types::Standard. ๐Ÿ‘‘
  • All the types from Types::Common::Numeric and Types::Common::String. ๐Ÿ“
  • All the types from Types::TypeTiny. ๐Ÿฆ‹
  • The -sigs tag from Type::Params. โญ
  • The t() function from Type::Registry. ๐ŸŽ€

and here's the little bonus detail that makes it chef's kiss: if you import t(), it will also be preloaded with all the type constraints offered by Types::Common. so it already knows everybody at the party. iconic behaviour, honestly. ๐ŸŒˆ


๐Ÿ›๏ธ EXPORT ๐Ÿ›๏ธ

use Types::Common qw( -types -sigs t )

might be a sensible place to start. like, that's your lil starter pack bestie ๐Ÿ’–

use Types::Common -all

gives you everything. the whole closet. every single thing. ๐Ÿ”ฅ

and if you have Perl 5.37.2+, then:

use Types::Common qw( -lexical -all )

won't pollute your namespace. clean girl aesthetic, no mess, no leftover variables in your global scope ๐Ÿงšโœจ


๐Ÿ› BUGS ๐Ÿ›

Please report any bugs to <https://github.com/tobyink/p5-type-tiny/issues>.

like, if something's broken, don't suffer in silence, tell the maintainer ๐Ÿซถ not me tho, i'm just the messenger ๐Ÿ’€


๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

  • Types::Standard
  • Types::Common::Numeric
  • Types::Common::String
  • Type::Params
  • Type::Registry

go read those too, they're the supporting cast and they ate ๐Ÿ’…


๐Ÿซถ AUTHOR ๐Ÿซถ

Toby Inkster <tobyink@cpan.org>. the main character honestly ๐Ÿ‘‘


This software is copyright (c) 2022-2025 by Toby Inkster.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go forth, remix, redistribute, it's yours ๐Ÿ’–


โš ๏ธ DISCLAIMER OF WARRANTIES โš ๏ธ

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

fr fr, no promises, no guarantees, you get what you get ๐Ÿ˜ญ read that one twice bestie, it's all caps for a reason.


okay that's the whole page!! ๐Ÿ’–โœจ๐ŸŽ€ this beauty is from perl v5.42.0, dated 2026-01-17, and it lives at Types::Common(3) โ€” mwah, slay, periodt ๐Ÿ’…๐ŸŒธ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from