On Nov 4, K Pfeiffer said:

>Gajo Csaba writes:
>> Hi, I have a problem with SWITCH. I wrote this, I think
>> it's clear to anzone what it should do:
>
>Just out of curiousity I typed in 'perldoc SWITCH' and 'perldoc -f SWITCH'
>and found nothing. What is it? (the short answer is fine)

It is nothing.  A "switch" statement in Perl can be written as the OP
showed.  "SWITCH" here is just a label.

  FOO: {
    if ($x == 1) { ...; last FOO; }
    if ($x == 2) { ...; last FOO; }
    ...
  }

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to