NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
See UsingJoins on the wiki (Score:2)
The documentation also has quite a lot about using custom sql and Class::DBI provides things like sth_to_objects which allows you to 'SELECT __ESSENTIAL__ from table_foo a, table_bar b where %s' when used with SQL::Abstract.
I was working on something like this last night and it works a treat. I was working from Randal's rather handy example.
@JAPH = qw(Hacker Perl Another Just);
print reverse @JAPH;
Just use SQL then (Score:1)
Using SQL directly is what makes Class::DBI so useful, in my opinion. You always have an escape hatch when you need it.