Skip to content

Commit

Permalink
added a pass through for unhandeled features
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Carroll committed Jun 18, 2010
1 parent e394611 commit 8a4c0bb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bdshell
Expand Up @@ -84,7 +84,13 @@ while ( my $input = ( $command || <$io> ) ) {

{
no strict 'refs';
*{"main::$sub"}->( \%/ );
if ( my $s = *{"main::$sub"} ) {
$s->( \%/ );
}
else {
say 'PASSING OFF $input no idea how to handle it';
$dbh->do( $input );
}
}

undef %/;
Expand Down

0 comments on commit 8a4c0bb

Please sign in to comment.