# count the SELECTs
DBI->trace(0, undef);
-my $selects = 0;
-my $trace = IO::File->new('t/var/dbic.trace', '<')
+$selects = 0;
+$trace = IO::File->new('t/var/dbic.trace', '<')
or die "Unable to read trace file";
while (<$trace>) {
$selects++ if /SELECT/;
is($selects, 3, 'one SQL statement for each cached table with nested prefetch');
my @objs;
-my $artist = $rs->find(1);
+$artist = $rs->find(1);
unlink 't/var/dbic.trace' if -e 't/var/dbic.trace';
DBI->trace(1, 't/var/dbic.trace');
# count the SELECTs
DBI->trace(0, undef);
-my $selects = 0;
-my $trace = IO::File->new('t/var/dbic.trace', '<')
+$selects = 0;
+$trace = IO::File->new('t/var/dbic.trace', '<')
or die "Unable to read trace file";
while (<$trace>) {
$selects++ if /SELECT/;