PMEXP(1)

πŸ“¦
version 2.2.0 Β· 3 versions
, in epel 9

πŸ’– NAME πŸ’–

Okay bestie, welcome to pmexp(1) β€” from the User Contributed Perl Documentation section β€” aka plain old pmexp, and its whole personality is show a module's exports. Periodt. πŸ’…

🌸 DESCRIPTION 🌸

So you hand it a module name, and this program identifies which symbols are automatically exported β€” those are the ones chillin' in that package's @EXPORT β€” and which symbols are optionally exported β€” aka the ones in that package's @EXPORT_OK. It also lists out the import groups, which live in that package's %EXPORT_TAGS hash. Slay, honestly. ✨


✨ EXAMPLES ✨

Like, just look at it go, bestie:

$ pmexp Text::ParseWords
Text::ParseWords automatically exports shellwords, quotewords, nested_quotewords, and parse_line
Text::ParseWords optionally exports old_shellwords

Another one, because we love a demo:

$ pmexp Text::Wrap
Text::Wrap automatically exports wrap and fill
Text::Wrap optionally exports $columns, $break, and $huge

And then Fcntl said β€œlet me do the most” 😭:

$ pmexp Fcntl
Fcntl automatically exports FD_CLOEXEC, F_DUPFD, F_EXLCK, F_GETFD, F_GETFL, F_GETLK, F_GETLK64, F_GETOWN, F_POSIX, F_RDLCK, F_SETFD, F_SETFL, F_SETLK, F_SETLK64, F_SETLKW, F_SETLKW64, F_SETOWN, F_SHLCK, F_UNLCK, F_WRLCK, O_ACCMODE, O_APPEND, O_ASYNC, O_BINARY, O_CREAT, O_DEFER, O_DSYNC, O_EXCL, O_EXLOCK, O_LARGEFILE, O_NDELAY, O_NOCTTY, O_NONBLOCK, O_RDONLY, O_RDWR, O_RSYNC, O_SHLOCK, O_SYNC, O_TEXT, O_TRUNC, and O_WRONLY

Fcntl optionally exports FAPPEND, FASYNC, FCREAT, FDEFER, FEXCL, FNDELAY, FNONBLOCK, FSYNC, FTRUNC, LOCK_EX, LOCK_NB, LOCK_SH, and LOCK_UN
Fcntl export tag 'Fcompat' includes FAPPEND, FASYNC, FCREAT, FDEFER, FEXCL, FNDELAY, FNONBLOCK, FSYNC, and FTRUNC
Fcntl export tag 'flock' includes LOCK_SH, LOCK_EX, LOCK_NB, and LOCK_UN

πŸ’€ BUGS πŸ’€

Lowkey, the output formatting should be nicer β€” perhaps by using format and write. That's the little yikes note, bestie. 😭

πŸ‘€ SEE ALSO πŸ‘€

Go read these too, iykyk: pmeth(1), perlmod(1), and Exporter(3). 🫢


πŸ‘‘ AUTHORS and COPYRIGHTS πŸ‘‘

Respect to the authors and copyright holders, fr fr:

  • Copyright (C) 1999 Tom Christiansen.
  • Copyright (C) 2006-2014, 2018 Mark Leighton Fisher.

πŸ“œ LICENSE πŸ“œ

Bestie, this is free software πŸ’– β€” you can redistribute it and/or modify it under the terms of either: (a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or (b) the Perl "Artistic License". (This is the Perl 5 licensing scheme.)

Please note this is a change from the original pmtools-1.00 (still available on CPAN), as pmtools-1.00 were licensed only under the Perl "Artistic License".


mwah πŸ’‹ β€” this page comes from perl v5.32.1, dated 2022-01-21, and it's the PMEXP(1) manual page. bye bestie 🫢

πŸ“¦ where this page comes from