Not quite on topic, but why call your variables $var1 etc? Better would be to give them descriptive names. You can then dispense with the comments and don't have to refer elsewhere when they appear in the code.
becomesmy $var1 = "dbname"; #Database Name my $var2 = "user"; #Username my $var3 = "pass"; #Password my $var4 = "select directory_path, keyword1, keyword2, keyword3 from +load_instance where rule_id = +'1'";
my $database = "dbname"; my $username = "user"; my $password = "pass"; my $query = "select directory_path, keyword1, keyword2, keyword3 from load_insta +nce where rule_id = '1'"; ... my $dbh = DBI->connect( "DBI:Oracle:", $database, $username, $password + ); ... $sth->prepare($query);
In reply to Re^3: functions and arguments
by hipowls
in thread functions and arguments
by mercuryshipz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |