> From: "Heiko Heggen" <[EMAIL PROTECTED]> > Date: Wed, 29 May 2002 15:28:17 +0200 > To: "Beginners@Perl. Org" <[EMAIL PROTECTED]> > Subject: Getting data from console > > Hi. > > Just another question. How can I get a user input from the console in perl? > I'm just playing with the DBI Module and want to ask for a select statement, > which I can enter in the console. Executing the statment works already fine > *gg*.
Do you mean like: print "Select what database to open:\n"; chomp(my $db = <STDIN>); Or % perlscript.pl database user Where you can access them trough $ARGV[0] and $ARGV[1] Tor -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]