Re: Class to select/insert/delete/update

2004-06-24 Thread LRMK
I think it will be nice if you write more hgher level methods for each InsertSelect, Update, Create, And Delete commends. Ex:- An Insert method which take the table name and a Hash as args and cunstruct the query and execute it sub Insert($%){ $self = shift; my ($table,%data) = @_; m

Re: Class to select/insert/delete/update

2004-06-24 Thread Wiggins d Anconia
> Hello, > > i'm trying to make a class to do select/insert/delete/update on a MySQL table (via DBI). > this is a snip of code: > You haven't really shown us a class, just a method... > sub query{ > my $self = shift; > my($sql) = @_; > my @result; Why scope @result here