Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

(tye)Re: Private Class Methods

by tye (Sage)
on Apr 05, 2002 at 22:32 UTC ( [id://157074]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package My::Class;
    use vars qw( $VERSION );
    BEGIN { $VERSION= 1.001 }
    ...
        utilityFunction( $self, @args );
        # ...
    }
    
  2. or download this
        # Calling a class method via an object:
        my $obj2= $obj1->new();
    
    ...
    
        # Using my utility function:
        $obj->utilityFunction();
    
  3. or download this
        *My::Class::_object::new= \&My::Class::new;
  4. or download this
    package My::Class;
    use vars qw( $VERSION );
    BEGIN { $VERSION= 1.001 }
    ...
    
    package My::Class;
    My::Class::_internal->import( ":DEFAULT" );
    
  5. or download this
        package My::Class;
        use My::Class::_internal;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://157074]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-03-28 17:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found