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


ru.perl

 
 - RU.PERL ----------------------------------------------------------------------
 From : Andrey Sapozhnikov                   2:5020/400     09 Oct 2002  15:56:15
 To : Artem Chuprina
 Subject : Re: eval
 -------------------------------------------------------------------------------- 
 
 Artem Chuprina wrote:
 
 > AL> my $code = <<CODE;
 > 
 > my $code = <<'CODE';
 > 
 > Можно почитать документацию. Иногда помогает. Лучше книжку, поскольку найти
 > это сходу в perldoc'ах мне не удалось - только примеры в perlop.
 
 Hе обязательно книжку. perldoc perlop
 
 ...
         <<EOF   A line-oriented form of quoting is based on the shell
                 "here-document" syntax.  Following a "<<" you specify a string
                 to terminate the quoted material, and all lines following the
                 current line down to the terminating string are the value of
                 the item.  The terminating string may be either an identifier
                 (a word), or some quoted text.  If quoted, the type of quotes
                 you use determines the treatment of the text, just as in regu-
                 lar quoting.  An unquoted identifier works like double quotes.
 ...
 
 все предельно ясно написано.
 
 Андрей
 
 --- ifmail v.2.15dev5
  * Origin: Demos online service (2:5020/400)
 
 

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

 Тема:    Автор:    Дата:  
 eval   Alexander Lunkov   08 Oct 2002 20:18:25 
 Re: eval   Artem Chuprina   09 Oct 2002 12:28:21 
 Re: eval   Andrey Sapozhnikov   09 Oct 2002 15:56:15 
 Re: eval   Artem Chuprina   09 Oct 2002 18:05:30 
 Re: eval   Denis Poznyakov   09 Oct 2002 13:14:46 
Архивное /ru.perl/6577005b2723.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional