Spec-Zone .ru
спецификации, руководства, описания, API
Spec-Zone .ru
спецификации, руководства, описания, API
Библиотека разработчика Mac Разработчик
Поиск

 

Эта страница руководства для  версии 10.9 Mac OS X

Если Вы выполняете различную версию  Mac OS X, просматриваете документацию локально:

Читать страницы руководства

Страницы руководства предназначаются как справочник для людей, уже понимающих технологию.

  • Чтобы изучить, как руководство организовано или узнать о синтаксисе команды, прочитайте страницу руководства для страниц справочника (5).

  • Для получения дополнительной информации об этой технологии, ищите другую документацию в Библиотеке Разработчика Apple.

  • Для получения общей информации о записи сценариев оболочки, считайте Shell, Пишущий сценарий Учебника для начинающих.



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



NAME
       Perl::OSType - Map Perl operating system names to generic types

VERSION
       version 1.002

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
          Devel::CheckOS

AUTHOR
       David Golden <dagolden@cpan.org>

COPYRIGHT AND LICENSE
       This software is copyright (c) 2010 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.16.2                                     2012-10-11                                Perl::OSType(3pm)

Сообщение о проблемах

Способ сообщить о проблеме с этой страницей руководства зависит от типа проблемы:

Ошибки содержания
Ошибки отчета в содержании этой документации к проекту Perl. (См. perlbug (1) для инструкций представления.)
Отчеты об ошибках
Сообщите об ошибках в функциональности описанного инструмента или API к Apple через Генератор отчетов Ошибки и к проекту Perl, использующему perlbug (1).
Форматирование проблем
Отчет, форматирующий ошибки в интерактивной версии этих страниц со ссылками на отзыв ниже.