X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=examples%2FSchema%2Ftestdb.pl;h=c608f459d750a295742fb48cecf5436d631f86c3;hb=f54428abf9cc7d7e5604745335694eaf558f6820;hp=b31773d513b94e145ece8a4204f6ddea7d5493ee;hpb=cdacba7e0c9b7bc947ae47238be4c6a25f9c7b13;p=dbsrgits%2FDBIx-Class.git diff --git a/examples/Schema/testdb.pl b/examples/Schema/testdb.pl index b31773d..c608f45 100644 --- a/examples/Schema/testdb.pl +++ b/examples/Schema/testdb.pl @@ -1,8 +1,10 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl -use MyDatabase::Main; +use warnings; use strict; +use MyDatabase::Main; + my $schema = MyDatabase::Main->connect('dbi:SQLite:db/example.db'); # for other DSNs, e.g. MySql, see the perldoc for the relevant dbd # driver, e.g perldoc L. @@ -26,7 +28,6 @@ sub get_tracks_by_cd { }, { join => [qw/ cd /], - prefetch => [qw/ cd /] } ); while (my $track = $rs->next) { @@ -79,7 +80,6 @@ sub get_cds_by_artist { }, { join => [qw/ artist /], - prefetch => [qw/ artist /] } ); while (my $cd = $rs->next) {