|
|
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)
Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.perl/6577005b2723.html, оценка из 5, голосов 10
|