in reply to Re: Why is my script not printing anything?and how to add a switch case in perl
in thread Why is my script not printing anything?and how to add a switch case in perl
Is there a way I can attach files to my replies?I can attach sample input and output files?
Enter your choice: 1.Errors 2.Warnings
Would the following sample switch code work when the user is given the above choices?
given($_) { when (/1/) { error_entry(); } when (/2/) { warning_entry(); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Why is my script not printing anything?and how to add a switch case in perl
by GrandFather (Saint) on Dec 02, 2010 at 04:25 UTC | |
by iphone (Beadle) on Dec 02, 2010 at 05:09 UTC | |
by GrandFather (Saint) on Dec 02, 2010 at 06:03 UTC | |
by iphone (Beadle) on Dec 02, 2010 at 07:23 UTC | |
by cdarke (Prior) on Dec 02, 2010 at 09:11 UTC | |
by GrandFather (Saint) on Dec 02, 2010 at 10:05 UTC | |
by pemungkah (Priest) on Dec 02, 2010 at 23:42 UTC |