The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

warnings (3)
  • >> warnings (3) ( Solaris man: Библиотечные вызовы )
  • warnings (3) ( Linux man: Библиотечные вызовы )
  • 
    
    

    NAME

         warnings - Perl pragma to control optional warnings
    
    
    

    SYNOPSIS

             use warnings;
             no warnings;
    
             use warnings "all";
             no warnings "all";
    
             use warnings::register;
             if (warnings::enabled()) {
                 warnings::warn("some warning");
             }
    
             if (warnings::enabled("void")) {
                 warnings::warn("void", "some warning");
             }
    
    
    
    

    DESCRIPTION

         If no import list is supplied, all possible warnings are
         either enabled or disabled.
    
         A number of functions are provided to assist module authors.
    
         use warnings::register
             Creates a new warnings category which has the same name
             as the module where the call to the pragma is used.
    
         warnings::enabled([$category])
             Returns TRUE if the warnings category `$category' is
             enabled in the calling module.  Otherwise returns FALSE.
    
             If the parameter, `$category', isn't supplied, the
             current package name will be used.
    
         warnings::warn([$category,] $message)
             If the calling module has not set `$category' to
             "FATAL", print `$message' to STDERR.  If the calling
             module has set `$category' to "FATAL", print `$message'
             STDERR then die.
    
             If the parameter, `$category', isn't supplied, the
             current package name will be used.
    
         See the Pragmatic Modules entry in the perlmod manpage and
         the perllexwarn manpage.
    
    
    
    


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру