Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

perl::ostype(3pm) [mojave man page]

Perl::OSType(3pm)					 Perl Programmers Reference Guide					 Perl::OSType(3pm)

NAME
Perl::OSType - Map Perl operating system names to generic types VERSION
version 1.003 SYNOPSIS
use Perl::OSType ':all'; $current_type = os_type(); $other_type = os_type('dragonfly'); # gives 'Unix' DESCRIPTION
Modules that provide OS-specific behaviors often need to know if the current operating system matches a more generic type of operating systems. For example, 'linux' is a type of 'Unix' operating system and so is 'freebsd'. This module provides a mapping between an operating system name as given by $^O and a more generic type. The initial version is based on the OS type mappings provided in Module::Build and ExtUtils::CBuilder. (Thus, Microsoft operating systems are given the type 'Windows' rather than 'Win32'.) USAGE
No functions are exported by default. The export tag ":all" will export all functions listed below. os_type() $os_type = os_type(); $os_type = os_type('MSWin32'); Returns a single, generic OS type for a given operating system name. With no arguments, returns the OS type for the current value of $^O. If the operating system is not recognized, the function will return the empty string. is_os_type() $is_windows = is_os_type('Windows'); $is_unix = is_os_type('Unix', 'dragonfly'); Given an OS type and OS name, returns true or false if the OS name is of the given type. As with "os_type", it will use the current operating system as a default if no OS name is provided. SEE ALSO
o Devel::CheckOS SUPPORT
Bugs / Feature Requests Please report any bugs or feature requests through the issue tracker at <https://github.com/dagolden/perl-ostype/issues>. You will be notified automatically of any progress on your issue. Source Code This is open source software. The code repository is available for public review and contribution under the terms of the license. <https://github.com/dagolden/perl-ostype> git clone git://github.com/dagolden/perl-ostype.git AUTHOR
David Golden <dagolden@cpan.org> CONTRIBUTORS
o Jonas B. Nielsen <jonasbn@hoarfrost.local> o Paul Green <Paul.Green@stratus.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by David Golden. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.18.2 2014-01-06 Perl::OSType(3pm)

Check Out this Related Man Page

CPAN::Meta::YAML(3)					User Contributed Perl Documentation				       CPAN::Meta::YAML(3)

NAME
CPAN::Meta::YAML - Read and write a subset of YAML for CPAN Meta files VERSION
version 0.008 SYNOPSIS
use CPAN::Meta::YAML; # reading a META file open $fh, "<:utf8", "META.yml"; $yaml_text = do { local $/; <$fh> }; $yaml = CPAN::Meta::YAML->read_string($yaml_text) or die CPAN::Meta::YAML->errstr; # finding the metadata $meta = $yaml->[0]; # writing a META file $yaml_text = $yaml->write_string or die CPAN::Meta::YAML->errstr; open $fh, ">:utf8", "META.yml"; print $fh $yaml_text; DESCRIPTION
This module implements a subset of the YAML specification for use in reading and writing CPAN metadata files like META.yml and MYMETA.yml. It should not be used for any other general YAML parsing or generation task. NOTE: META.yml (and MYMETA.yml) files should be UTF-8 encoded. Users are responsible for proper encoding and decoding. In particular, the "read" and "write" methods do not support UTF-8 and should not be used. SUPPORT
This module is currently derived from YAML::Tiny by Adam Kennedy. If there are bugs in how it parses a particular META.yml file, please file a bug report in the YAML::Tiny bugtracker: http://rt.cpan.org/NoAuth/ReportBug.html?Queue=YAML-Tiny <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=YAML-Tiny> SEE ALSO
YAML::Tiny, YAML, YAML::XS SUPPORT
Bugs / Feature Requests Please report any bugs or feature requests through the issue tracker at http://rt.cpan.org/Public/Dist/Display.html?Name=CPAN-Meta-YAML <http://rt.cpan.org/Public/Dist/Display.html?Name=CPAN-Meta-YAML>. You will be notified automatically of any progress on your issue. Source Code This is open source software. The code repository is available for public review and contribution under the terms of the license. https://github.com/dagolden/cpan-meta-yaml <https://github.com/dagolden/cpan-meta-yaml> git clone https://github.com/dagolden/cpan-meta-yaml.git AUTHORS
o Adam Kennedy <adamk@cpan.org> o David Golden <dagolden@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Adam Kennedy. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.16.2 2012-03-14 CPAN::Meta::YAML(3)
Man Page