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


ru.perl

 
 - RU.PERL ----------------------------------------------------------------------
 From : Artem Chuprina                       2:5020/371.32  03 Aug 2000  10:31:35
 To : Alexey Karak
 Subject : Re: Флаг -T в ActiveState Perl 5.613
 -------------------------------------------------------------------------------- 
 
 <Alexey_Karak@p10.f1306.n5020.z2.fidonet.org> wrote:
 
 AK> Почему в ответ на указание в первой строке скрипта флага -T, т.е.
 AK>    #!perl -Tw
 AK>       или
 AK>    #!perl -T
 AK> я при запуске такого скрипта получаю ответ:
 AK> Too late for "-T" option at e:\temp\myscript.pl line 1.
 AK> При запуске из командной строки вида
 AK>    perl -T myscript.pl
 AK> все отлично.
 
 ==== 8< [!perldoc perldiag] ====
        Too late for "-T" option
            (X) The #! line (or local equivalent) in a Perl script
            contains the -T option, but Perl was not invoked with
            -T in its command line.  This is an error because, by
            the time Perl discovers a -T in a script, it's too
            late to properly taint everything from the
            environment.  So Perl gives up.
 
            If the Perl script is being executed as a command
            using the #!  mechanism (or its local equivalent),
            this error can usually be fixed by editing the #! line
            so that the -T option is a part of Perl's first
            argument: e.g. change perl -n -T to perl -T -n.
 
            If the Perl script is being executed as perl
            scriptname, then the -T option must appear on the
            command line: perl -T scriptname.
 
 ==== >8 [!perldoc perldiag] ====
 
 Что-то непонятно?
 
 -- 
 Счастливо!
   Ран.
 --- ifmail v.2.14.os-p7-tma3
  * Origin: MemoNet (2:5020/371.32@fidonet)
 
 

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

 Тема:    Автор:    Дата:  
 Флаг -T в ActiveState Perl 5.613   Alexey Karak   02 Aug 2000 14:18:45 
 Re: Флаг -T в ActiveState Perl 5.613   Artem Chuprina   03 Aug 2000 10:31:35 
Архивное /ru.perl/347362dbcb21.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional