Re: bad logic

2001-03-08 Thread Ron Grabowski
> sub Get_Input { > print "\nEnter Job Type ['L' to list]: "; > chomp($type=); > if ($type eq "l" || $type eq "L") {system "type golist.idx | > more";Get_Input()} It looks like your making a recursive call to Get_Input() here. Why not do something like: # untested print "\nEnter Job Type

bad logic

2001-03-08 Thread Jean-Paul Felix
I've a subroutine which doesn't act the way I'd like it to. If I run through it, look at the list, then choose [enter] for the last two questions; these questions are repeated. I know it's my bad coding; could anyone offer some insight please? tks sub Get_Input { print "\nEnter Job Type ['L' t