mandalmanas5519 has asked for the wisdom of the Perl Monks concerning the following question:
Please helpuse feature ':5.10'; use warnings; print "1.Do you want to enter value for Starting account balance. (y/n +)?"; $answer= <STDIN>; chomp $answer; if ($answer eq "y") { print "Please enter SAB= "; $SAB=<STDIN>; print "$SAB"; print "2.Do you want to enter the Date. (y/n)?"; $answer=<STDIN>; } elsif ($answer eq "y") { print "Enter date = "; $Date=<STDIN>; print "$Date"; } else { print "Exit program"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Don't get the output as expect.
by frozenwithjoy (Priest) on Jun 05, 2013 at 20:03 UTC | |
by mandalmanas5519 (Initiate) on Jun 05, 2013 at 20:12 UTC | |
by frozenwithjoy (Priest) on Jun 05, 2013 at 20:38 UTC | |
|
Re: Don't get the output as expect.
by kcott (Archbishop) on Jun 05, 2013 at 20:29 UTC | |
|
Re: Don't get the output as expect.
by choroba (Cardinal) on Jun 05, 2013 at 20:06 UTC |