Bismark has asked for the wisdom of the Perl Monks concerning the following question:
credo quia absurdumprint "This program sends a query to the First Article Inspection Data +Base folder using the Part Number and Revision given by the user. NOTE - the user must have already logged in via the passsword entry screen, which sets the permission. The database query will be read from standard input.\n\n"; #This is where the user will enter the Part Number and Revision Level print "What is the Part Number that you would like to look up?\n"; my $PartNumber = <STDIN>; if ($PartNumber eq "\n") { print "There was no input"; } else { print "What is the Revision level for $PartNumber"; my $Revision = <STDIN>; redo }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: using redo in an if/else statement
by davorg (Chancellor) on Jan 14, 2003 at 17:31 UTC | |
Re: using redo in an if/else statement
by Fletch (Bishop) on Jan 14, 2003 at 17:29 UTC | |
Re: using redo in an if/else statement
by thatguy (Parson) on Jan 14, 2003 at 17:36 UTC | |
by Bismark (Scribe) on Jan 14, 2003 at 17:51 UTC | |
Re: using redo in an if/else statement
by Zaxo (Archbishop) on Jan 14, 2003 at 17:57 UTC | |
Re: using redo in an if/else statement
by pg (Canon) on Jan 14, 2003 at 21:23 UTC | |
by gjb (Vicar) on Jan 14, 2003 at 21:58 UTC | |
Re: using redo in an if/else statement
by JamesNC (Chaplain) on Jan 15, 2003 at 03:49 UTC |