in reply to Uninitialized value warning in subrutine

Just a minor style comment, this style of argument handling is a little bit unusual. Generally this would look like:

sub queryDBI { my ($foo,$bar,$baz,$table)=@_; my $query="Select $foo, $bar, $baz from $table";

Directly accessing @_ is ugly and confusing and suffers from the problem that if you change the order of arguments or perhaps add a new argument somewhere in the middle making the appropriate changes is quite error prone. People occasionally do it in "tiny subs" and gurus will occasionally resort to it for their own purposes (remember @_ is magic) but to see it in code like this is a bad sign. Use named lexical copies of the arguments instead.

---
demerphq