App::I...SPUUID(3pm)
β¨ NAME β¨
yo bestie, welcome to the App::Info::Lib::OSSPUUID(3pm) manual page β it's a User Contributed Perl Documentation moment, and it's all about the OSSP UUID library. App::Info::Lib::OSSPUUID β Information about the OSSP UUID library. π
π¦ SYNOPSIS π¦
okay so here's the vibe check:
use App::Info::Lib::OSSPUUID;
my $uuid = App::Info::Lib::OSSPUUID->new;
if ($uuid->installed) {
print "App name: ", $uuid->name, "\n";
print "Version: ", $uuid->version, "\n";
print "Bin dir: ", $uuid->bin_dir, "\n";
} else {
print "Expat is not installed. :-(\n";
}
π DESCRIPTION π
App::Info::Lib::OSSPUUID supplies information about the OSSP UUID library installed on the local system. It implements all of the methods defined by App::Info::Lib. Methods that trigger events will trigger them only the first time they're called (See App::Info for documentation on handling events). To start over (after, say, someone has installed the OSSP UUID library) construct a new App::Info::Lib::OSSPUUID object to aggregate new meta data. β¨
Some of the methods trigger the same events. This is due to cross-calling of shared subroutines. However, any one event should be triggered no more than once. For example, although the info event "Executing uuid-config --version" is documented for the methods name() version(), major_version(), minor_version(), and patch_version(), rest assured that it will only be triggered once, by whichever of those four methods is called first. No cap. π«Ά
π INTERFACE π
π Constructor π
new
my $expat = App::Info::Lib::OSSPUUID->new(@params);
Returns an App::Info::Lib::OSSPUUID object. See App::Info for a complete description of argument parameters.
When called, new() searches all of the paths returned by the search_lib_dirs() method for one of the files returned by the search_lib_names() method. If any of is found, then the OSSP UUID library is assumed to be installed. Otherwise, most of the object methods will return undef. π
Events:
- info β Looking for uuid-config
- confirm β Path to uuid-config?
- unknown β Path to uuid-config?
π Class Method π
key_name
my $key_name = App::Info::Lib::OSSPUUID->key_name;
Returns the unique key name that describes this class. The value returned is the string OSSP UUID.
π Object Methods π
installed
print "UUID is ", ($uuid->installed ? '' : 'not '), "installed.\n";
Returns true if the OSSP UUID library is installed, and false if it is not. App::Info::Lib::OSSPUUID determines whether the library is installed based on the presence or absence on the file system of the uuid-config application, searched for when new() constructed the object. If the OSSP UUID library does not appear to be installed, then most of the other object methods will return empty values.
name
my $name = $uuid->name;
Returns the name of the library. App::Info::Lib::OSSPUUID parses the name from the system call uuid-config --version.
Events:
- info β Executing
uuid-config --version - error β Failed to find OSSP UUID version with
uuid-config --version- Unable to parse name from string
- Unable to parse version from string
- Failed to parse OSSP UUID version parts from string
- unknown β Enter a valid OSSP UUID version number
version
my $version = $uuid->version;
Returns the OSSP UUID version number. App::Info::Lib::OSSPUUID parses the version number from the system call uuid-config --version.
Events:
- info β Executing
uuid-config --version - error β Failed to find OSSP UUID version with
uuid-config --version- Unable to parse name from string
- Unable to parse version from string
- Failed to parse OSSP UUID version parts from string
- unknown β Enter a valid OSSP UUID version number
major version
my $major_version = $uuid->major_version;
Returns the OSSP UUID library major version number. App::Info::Lib::OSSPUUID parses the major version number from the system call uuid-config --version. For example, if version() returns 1.3.0, then this method returns 1.
Events:
- info β Executing
uuid-config --version - error β Failed to find OSSP UUID version with
uuid-config --version- Unable to parse name from string
- Unable to parse version from string
- Failed to parse OSSP UUID version parts from string
- unknown β Enter a valid OSSP UUID major version number
minor version
my $minor_version = $uuid->minor_version;
Returns the OSSP UUID library minor version number. App::Info::Lib::OSSPUUID parses the minor version number from the system call uuid-config --version. For example, if version() returns 1.3.0, then this method returns 3.
Events:
- info β Executing
uuid-config --version - error β Failed to find OSSP UUID version with
uuid-config --version- Unable to parse name from string
- Unable to parse version from string
- Failed to parse OSSP UUID version parts from string
- unknown β Enter a valid OSSP UUID minor version number
patch version
my $patch_version = $uuid->patch_version;
Returns the OSSP UUID library patch version number. App::Info::Lib::OSSPUUID parses the patch version number from the system call uuid-config --version. For example, if version() returns 1.3.0, then this method returns 0.
Events:
- info β Executing
uuid-config --version - error β Failed to find OSSP UUID version with
uuid-config --version- Unable to parse name from string
- Unable to parse version from string
- Failed to parse OSSP UUID version parts from string
- unknown β Enter a valid OSSP UUID minor version number
executable
my $exe = $uuid->executable;
Returns the full path to the OSSP UUID executable, which is named uuid. This method does not use the executable names returned by search_exe_names(); those executable names are used to search for uuid-config only (in new()).
When it called, executable() checks for an executable named uuid in the directory returned by bin_dir().
Note that executable() is simply an alias for uuid().
Events:
- info β Looking for uuid executable
- confirm β Path to uuid executable?
- unknown β Path to uuid executable?
bin_dir
my $bin_dir = $uuid->bin_dir;
Returns the OSSP UUID binary directory path. App::Info::Lib::OSSPUUID gathers the path from the system call uuid-config --bindir.
Events:
- info β Executing
uuid-config --bindir - error β Cannot find bin directory
- unknown β Enter a valid OSSP UUID bin directory
inc_dir
my $inc_dir = $uuid->inc_dir;
Returns the OSSP UUID include directory path. App::Info::Lib::OSSPUUID gathers the path from the system call uuid-config --includedir.
Events:
- info β Executing
uuid-config --includedir - error β Cannot find include directory
- unknown β Enter a valid OSSP UUID include directory
lib_dir
my $lib_dir = $uuid->lib_dir;
Returns the OSSP UUID library directory path. App::Info::Lib::OSSPUUID gathers the path from the system call uuid-config --libdir.
Events:
- info β Executing
uuid-config --libdir - error β Cannot find library directory
- unknown β Enter a valid OSSP UUID library directory
so_lib_dir
my $so_lib_dir = $uuid->so_lib_dir;
Returns the OSSP UUID shared object library directory path. This is actually just an alias for lib_dir().
Events:
- info β Executing
uuid-config --libdir - error β Cannot find library directory
- unknown β Enter a valid OSSP UUID library directory
cflags
my $configure = $uuid->cflags;
Returns the C flags used when compiling the OSSP UUID library. App::Info::Lib::OSSPUUID gathers the configure data from the system call uuid-config --cflags.
Events:
- info β Executing
uuid-config --configure - error β Cannot find configure information
- unknown β Enter OSSP UUID configuration options
ldflags
my $configure = $uuid->ldflags;
Returns the LD flags used when compiling the OSSP UUID library. App::Info::Lib::OSSPUUID gathers the configure data from the system call uuid-config --ldflags.
Events:
- info β Executing
uuid-config --configure - error β Cannot find configure information
- unknown β Enter OSSP UUID configuration options
perl_module
my $bool = $uuid->perl_module;
Return true if OSSP::uuid is installed and can be loaded, and false if not. OSSP::uuid must be able to be loaded by the currently running instance of the Perl interpreter.
Events:
- info β Loading OSSP::uuid
home_url
my $home_url = $uuid->home_url;
Returns the OSSP UUID home page URL.
download_url
my $download_url = $uuid->download_url;
Returns the OSSP UUID download URL.
search_exe_names
my @search_exe_names = $app->search_exe_names;
Returns a list of possible names for uuid-config executable. By default, only uuid-config is returned (or uuid-config.exe on Win32).
Note that this method is not used to search for the OSSP UUID server executable, only uuid-config.
search_bin_dirs
my @search_bin_dirs = $app->search_bin_dirs;
Returns a list of possible directories in which to search an executable. Used by the new() constructor to find an executable to execute and collect application info. The found directory will also be returned by the bin_dir method.
The list of directories by default consists of the path as defined by File::Spec->path, as well as the following directories:
/usr/local/bin/usr/local/sbin/usr/bin/usr/sbin/binC:\Program Files\uid\bin
π Other Executable Methods π
These methods function just like the executable() method, except that they return different executables. OSSP UUID comes with a fair number of them; we provide these methods to provide a path to a subset of them. Each method, when called, checks for an executable in the directory returned by bin_dir(). The name of the executable must be one of the names returned by the corresponding search_*_names method.
The available executable methods are:
uuiduuid_config
And the corresponding search names methods are:
search_postgres_namessearch_createdb_names
Events:
- info β Looking for executable
- confirm β Path to executable?
- unknown β Path to executable?
π SUPPORT π
okay so bestie, this module lives in an open GitHub repository and it's literally begging you to come hang out:
http://github.com/theory/app-info/
feel free to fork it and contribute! it's giving community, it's giving collaboration, it's giving we love an open source moment. π«Ά
and if something's broken (rude), please file bug reports through GitHub Issues:
http://github.com/theory/app-info/issues/
or, if you're feeling retro and email-y, you can send mail to bug-App-Info@rt.cpan.org. yes that's a real address, copy it exactly bestie, no typos:
mailto:bug-App-Info@rt.cpan.org
π AUTHOR π
the one, the only, the main character who wrote all of this:
David E. Wheeler <david@justatheory.com>
periodt. π
π SEE ALSO π
the way this module has friends β okay so let's do the rounds:
- App::Info β this one documents the event handling interface. yep, the whole event vibe lives there.
- App::Info::Lib β this is the parent class of App::Info::Lib::Expat. family tree moment. π§
- OSSP::uuid β the Perl interface to the OSSP UUID library. the actual guts, iykyk.
- http://www.ossp.org/pkg/lib/uuid/ β and this is the OSSP UUID home page. go say hi. π¦
π COPYRIGHT AND LICENSE π
Copyright (c) 2002-2011, David E. Wheeler. Some Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay, honestly. π
no cap, that's the whole page. go forth and UUID responsibly. β¨
and that's a wrap, bestie πΈ β this little gem comes to you from perl v5.36.0, dated 2022-12-06, and it's filed under App::I...SPUUID(3pm). take care of her, she's iconic. π π
π¦ where this page comes from
- debian bookworm: libapp-info-perl 0.57-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libapp-info-perl 0.57-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libapp-info-perl 0.57-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libapp-info-perl 0.57-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libapp-info-perl 0.57-4 Β· 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