Any suggestions would be greatly appreciated
See http://perldoc.perl.org/perlintro.html#Conditional-and-looping-constructs especially http://perldoc.perl.org/perlintro.html#while
my $dbh; while( not $dbh ){ my $user = prompt("enter username"); my $pass = prompt("enter password"); $dbh = DBI->connect( $dsn, $user, $pass ); }
See also Term::Interact and Term::Interact example
In reply to Re: DBI user input question
by Anonymous Monk
in thread DBI user input question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |