Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

(tye)Re: Private Class Methods

by tye (Cardinal)
on Apr 05, 2002 at 22:32 UTC ( #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
Node Status?
node history
Node Type: note [id://157074]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2014-12-20 00:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (94 votes), past polls