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


ru.perl

 
 - RU.PERL ----------------------------------------------------------------------
 From : Dmitry Smolin                        2:5020/949     18 Nov 2001  03:52:46
 To : Stas Vlasov
 Subject : format STDOUT
 -------------------------------------------------------------------------------- 
 
  Once, 18 Nov 2001 01:29, Stas Vlasov wrote to All:
 
  SV> господа, а как натравить write на STDOUT?
 
 Какие проблемы?
 
 === Cut ===
 $line = "просто длинная строка, которую надо разбить на несколько";
 write;
 
 format =
 ^<<<<<<<<<<<<<<<<<<<<<<<<<<<~~
 $line
 .
 === Cut ===
 
  SV> select (STDOUT)
 
 perldoc perlsyn:
 
 === Cut ===
 Simple statements
 
   The only kind of simple statement is an expression evaluated for its
   side effects. Every simple statement must be terminated with a
   semicolon, unless it is the final statement in a block, in which case
   the semicolon is optional. (A semicolon is still encouraged there if the
   block takes up more than one line, because you may eventually add
   another line.) Note that there are some operators like "eval {}" and "do
   {}" that look like compound statements, but aren't (they're just TERMs
   in an expression), and thus need an explicit termination if used as the
   last item in a statement.
 === Cut ===
  Take care.
 
 --- skanking to the rhythm of the music by my side
  * Origin: Just play the off-beat the way it should be (2:5020/949)
 
 

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

 Тема:    Автор:    Дата:  
 format STDOUT   Stas Vlasov   18 Nov 2001 02:29:50 
 format STDOUT   Dmitry Smolin   18 Nov 2001 03:52:46 
 Re: format STDOUT   Stas Vlasov   18 Nov 2001 12:04:13 
Архивное /ru.perl/208523bf6faf4.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional