ankit.tayal560 has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use warnings; print("Enter the number of flags which needs to be generated..\n"); my $num=<STDIN>;
this is some part of my code. If the input number is 0 or less than 0 than it should jump to some other part say line number 32 of my code. how can I achieve that? any specific function which I can use?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to jump to some specific line in my code ?
by GrandFather (Saint) on Sep 27, 2016 at 05:08 UTC | |
by ankit.tayal560 (Beadle) on Sep 27, 2016 at 08:16 UTC | |
|
Re: how to jump to some specific line in my code ?
by Laurent_R (Canon) on Sep 27, 2016 at 07:32 UTC | |
|
Re: how to jump to some specific line in my code ?
by karlgoethebier (Abbot) on Sep 27, 2016 at 07:24 UTC | |
|
Re: how to jump to some specific line in my code ?
by haukex (Archbishop) on Sep 27, 2016 at 10:43 UTC | |
|
Re: how to jump to some specific line in my code ?
by Anonymous Monk on Sep 27, 2016 at 04:58 UTC | |
|
Re: how to jump to some specific line in my code ?
by Anonymous Monk on Sep 27, 2016 at 04:55 UTC | |
by ankit.tayal560 (Beadle) on Sep 27, 2016 at 04:59 UTC |