Главная страница


ru.perl

 
 - RU.PERL ----------------------------------------------------------------------
 From : Artem Chuprina                       2:5020/400     18 Dec 2002  18:36:05
 To : All
 Subject : проверка и работа синтаксиса
 -------------------------------------------------------------------------------- 
 
 ran@banquet> perl -wce 'use strict; print 1 if convert_to_plain;'
 Bareword found in conditional at -e line 1.
 -e syntax OK
 ran@banquet> perl -le 'use strict; print 1 if convert_to_plain;' 
 1
 ran@banquet> perldoc -f convert_to_plain
 No documentation for perl function `convert_to_plain' found
 ran@banquet> perl -v
 
 This is perl, v5.6.1 built for i386-linux
 
 Copyright 1987-2001, Larry Wall
 
 Perl may be copied only under the terms of either the Artistic License or the
 GNU General Public License, which may be found in the Perl 5 source kit.
 
 Complete documentation for Perl, including FAQ lists, should be found on
 this system using `man perl' or `perldoc perl'.  If you have access to the
 Internet, point your browser at http://www.perl.com/, the Perl Home Page.
 
 Почему оно не ругается (-w не в счет - это варнинг) на bareword
 convert_to_plain ни при компиляции, ни при выполнении? То же, если положить ее
 в аргументы print. А вот на
 
 'use strict; my $aaa = convert_to_plain;'
 
 честно ругается.
 
 -- 
 Artem Chuprina
 Communiware.net
 RFC2822: <ran@ran.pp.ru>, FIDO: 2:5020/122.256, ICQ: 13038757
 --- ifmail v.2.15dev5
  * Origin: Leninsky 45 home network (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 проверка и работа синтаксиса   Artem Chuprina   18 Dec 2002 18:36:05 
Архивное /ru.perl/1445424b08404.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional