On Jul 2, Nigel Wetters said:

>if (some_test){
>    for (some_loop){
>        # code
>    }
>}

If you feel like being witty, you could do:

  for (some_test ? (LIST) : ()) {
    # code
  }

Which basically means:

  "if some_test is true, loop this for (LIST).  if not, loop this for ()."

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
I am Marillion, the wielder of Ringril, known as Hesinaur, the Winter-Sun.
Are you a Monk?  http://www.perlmonks.com/     http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc.     http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter.         Brother #734
**      Manning Publications, Co, is publishing my Perl Regex book      **

Reply via email to