narashima has asked for the wisdom of the Perl Monks concerning the following question:
Note: The semicolons are missing above and are present belowuse Switch; switch ($char) { case 1 { print "1" } case 2 { print "2" } }
Any light on this behaviour of Perl is greatly appreciated.use Switch; switch ($char) { case 1 { print "1"; } case 2 { print "2"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Question about switch module for Perl
by jdhedden (Deacon) on Nov 03, 2006 at 20:41 UTC | |
|
Re: Question about switch module for Perl
by Fletch (Bishop) on Nov 03, 2006 at 20:57 UTC | |
|
Re: Question about switch module for Perl
by ysth (Canon) on Nov 03, 2006 at 20:22 UTC |