Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: A Not-as-Clumsy OOP Implementation?

by bikeNomad (Priest)
on Aug 25, 2001 at 18:46 UTC ( [id://107824]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Packet;
    
    ...
    while ( my $newPacket = makeOnePacket() ) {
        $newPacket->process();
    }
    
  2. or download this
    package NewPacket;
    use Packet;
    ...
    # you could also use __PACKAGE__ here:
    Packet::addType( qr/^(something)(.*)/,     'NewPacket' );
    Packet::addType( qr/^(somethingElse)(.*)/, 'NewPacket' );    # returns
    + true
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-03-29 13:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found