[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] testing



Arved_37@chebucto.ns.ca (Arved Sandstrom) wrote:
>If the processing depends on the value, then you'd likely want to convert
>your test to a Perl "switch" construct - less concise but gets the job
>done.

And what "switch" construct is that?  There is none in Perl.  

http://www.perl.com/pub/doc/manual/html/pod/perlfaq7.html#How_do_I_create_a_switch_or_case
http://www.perl.com/pub/doc/manual/html/pod/perlsyn.html#Basic_BLOCKs_and_Switch_Statemen

These URLs give some switch equivalents.

  -------------------                            -------------------
  Ken Williams                             Last Bastion of Euclidity
  ken@forum.swarthmore.edu                            The Math Forum



# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org