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


ru.cgi.perl

 
 - RU.CGI.PERL ------------------------------------------------------------------
 From : Ruslan Bondarev                      2:4624/1.65    15 Feb 2001  02:22:17
 To : ‚« ¤Ё¬Ёp ѓpҐЎ­Ґў
 Subject : Re: ?
 -------------------------------------------------------------------------------- 
 
 Вторник Февраль 13 2001 20:15, Владимиp Гpебнев -> Artem Chuprina:
 
  ВГ> Аpтем, ну как ты не поймешь, _HЕТУ У МЕHЯ perldoc'a_, потму и
  ВГ> спpашиваю...Да и эха вpоде для этого......
 
     Есть у тебя перлдок, тебе просто задницей пошевелить лень.
     Дарю, не шевели дальше: (о:
 
 goto LABEL
 goto EXPR
 goto &NAME
 goto LABEL finds the statement labeled with LABEL and resumes execution there.
 It may not be used to go into any construct that requires initialization, such
 as a subroutine or a foreach loop. It also can't be used to go into a construct 
 that is optimized away. It can be used to go almost anywhere else within the
 dynamic scope,[4] including out of subroutines, but for that purpose it's
 usually better to use some other construct such as last or die. The author of
 Perl has never felt the need to use this form of goto (in Perl, that is - C is
 another matter).
 
 [4] This means that if it doesn't find the label in the current routine, it
 looks back through the routines that called the current routine for the label,
 thus making it nearly impossible to maintain your program.
 
 Going to even greater heights of orthogonality (and depths of idiocy), Perl
 allows goto EXPR, which expects EXPR to evaluate to a label name, whose scope is
 guaranteed to be unresolvable until run-time since the label is unknown when the
 statement is compiled. This allows for computed gotos per FORTRAN, but isn't
 necessarily recommended[5] if you're optimizing for maintainability:
 
 [5] Understatement is reputed to be funny, so we thought we'd try one here.
 
 goto +("FOO", "BAR", "GLARCH")[$i];
 goto &NAME is highly magical, substituting a call to the named subroutine for
 the currently running subroutine. This is used by AUTOLOAD subroutines that wish
 to load another subroutine and then pretend that this subroutine - and not the
 original one - had been called in the first place (except that any modifications
 to @_ in the original subroutine are propagated to the replacement subroutine). 
 After the goto, not even caller will be able to tell that the original routine
 was called first.
 
     (Стайлуса только у меня не проси - не дам точно)
 
 ... bye.
 --- What can change the nature of a man?..
  * Origin:  (2:4624/1.65)
 
 

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

 Тема:    Автор:    Дата:  
 ?   ‚« ¤Ё¬Ёp ѓpҐЎ­Ґў   11 Feb 2001 15:37:00 
 Re: ?   Artem Chuprina   13 Feb 2001 15:16:11 
 Re: ?   ‚« ¤Ё¬Ёp ѓpҐЎ­Ґў   13 Feb 2001 21:15:13 
 Re: ?   Vitaliy T Morarian   15 Feb 2001 01:54:12 
 Re: ?   Ruslan Bondarev   15 Feb 2001 02:22:17 
 Moderatorial [*] (Re: ?)   Comoderator of RU.CGI.PERL   15 Feb 2001 14:31:38 
 Re: ?   Comoderator of RU.CGI.PERL   15 Feb 2001 14:30:56 
Архивное /ru.cgi.perl/27933a8b2fe0.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional