Permalink
Browse files

synopsys

  • Loading branch information...
1 parent 7045458 commit 6d470026f46a3d6104f1e206061b6ef5489f4ae9 @kazeburo committed Oct 25, 2010
Showing with 6 additions and 5 deletions.
  1. +6 −5 lib/Scope/Container.pm
View
@@ -42,7 +42,6 @@ Scope::Container - scope based container
use Scope::Container;
- my $contaier = start_scope_container();
sub getdb {
if ( my $dbh = scope_container('db') ) {
@@ -54,10 +53,12 @@ Scope::Container - scope based container
}
}
- getdb(); # do connect
- getdb(); # from container
-
- undef $container; #disconnect from db
+ for (1..10) {
+ my $contaier = start_scope_container();
+ getdb(); # do connect
+ getdb(); # from container
+ getdb(); # from container
+ }
getdb(); # do connect

0 comments on commit 6d47002

Please sign in to comment.