Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

$object->UnrelatedPackage::some_subroutine()

by Thilosophy (Curate)
on Feb 18, 2005 at 03:09 UTC ( [id://432172]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package SomeDatabaseStuff;
    sub my_funny_sql{
        my ($dbh) = @_;
        $dbh->do('my great query');
    }
    
  2. or download this
    my_funny_sql($dbh);
    
  3. or download this
    $dbh->SomeDatabaseStuff::my_funny_sql();
    
  4. or download this
    $dbh->SomeDatabaseStuff::my_funny_sql ( 'some parameter', 12 , 34 );
    
  5. or download this
    package MoreDatabaseStuff;
    @MoreDatabaseStuff::ISA = qw( SomeDatabaseStuff);
    ...
    $dbh->MoreDatabaseStuff::my_funny_sql();
    # ends up being dispatched properly
    # to the sub in the parent SomeDatabaseStuff
    
  6. or download this
    my $dbh = DBI->connect('....');
    $dbh->SomeDatabaseStuff::my_funny_sql;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://432172]
Approved by Tanktalus
Front-paged by Courage
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-20 03:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found