in reply to Re: DBD::Pg - function declaration and using alias $n
in thread DBD::Pg - function declaration and using alias $n

Those functions might be nicer if they live in their own application specific namespace. Consider this.

$dbh->My::App::poo( 12345 ); package My::App; use DBIx::ProcedureCall qw( poo );

Replies are listed 'Best First'.
Re^3: DBD::Pg - function declaration and using alias $n
by Thilosophy (Curate) on Feb 16, 2005 at 05:45 UTC
    Those functions might be nicer if they live in their own application specific namespace.

    The code you gave above should work, actually. Thanks for pointing out the interesting syntax.

    $dbh->My::App::poo( 12345 );
    I had no idea this works (calling an object with a fully qualified "method" name). I am going to mention this pattern in the module's docs.
      They'll allow you to use perl's ISA relationships to drive which function is actually called. If that is useful to you.