Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

The Null Mull (or, when OO needs more O)

by brian_d_foy (Abbot)
on Nov 29, 2004 at 06:46 UTC ( #410871=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -e '1->method'
    Can't call method "method" without a package or object reference at -e
    + line 1.
    
  2. or download this
    my $result = $obj->methoda->methodb->methodc;
    
  3. or download this
    package Object::EveryMethod;
    
    ...
    sub new { $all }
    
    sub AUTOLOAD { $_[0] }
    
  4. or download this
    # my $False = 0;  # old way
    my $False = Object::EveryMethod->new();
    ...
        else                        { $False }
        
        }
    
  5. or download this
    sub hey_that_worked
        {
        not UNIVERSAL::isa( $_[0], 'Object::EveryMethod' )
        }
    
  6. or download this
    package Object::EveryMethod;
    
    ...
    sub AUTOLOAD { $_[0] }
    
    sub what_happened { @{ $self }{ qw( message setter ) } }
    
  7. or download this
    sub methoda
        {
    ...
            }
        
        }
    
  8. or download this
    package Object::EveryMethod;
    
    ...
    sub can      { 1 }
    
    sub what_happened { @{ $self }{ qw( message setter ) } }
    
  9. or download this
    package Object::EveryMethod;
    
    ...
    sub can      { 0 unless defined &{$_[1]} }
    
    sub what_happened { @{ $self }{ qw( message setter ) } }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://410871]
Approved by thor
Front-paged by htoug
help
Chatterbox?
[Eily]: let me inform you that the Dutch reek translate into the Czech páchnout
[Eily]: very useful default translation :P
[Eily]: BTW LanX, you should try typing a few random chars at the beginning of each message. This will prevent expansion :P
[LanX]: qwiud you sthink so?
[LanX]: zxwqbd good idea! :)
LanX embraces his new habit spqopiwjdnq
[ambrus]: qQUkZTmHTuKxStGT- BzTIK9gdudif7TkTLI t3mnF144UaAZjkknXY 8nN-QM19wHBsTrp5vB lEYU_Kksa7X1RIBB4x EWLD5X7SW3jGX5ryfN OMn_yL5FTdQxzjhtyX mKN9sjUCzBNHK5Rrp0 S2WMUvIb1i9aZFgjtq VR0GH1bjPMvm1G16iz hBqc1U6toPd4FbJOFj VsOeT745AN1_pO88rD SRAYKtBZwCZedESZmN mvutrOTHiSNwflB- pRfn_k
[Eily]: so far it seems to work
Your Mother reminds the monks they should be grateful not to share an office, lest they be subjugated to constant inanities like, "Czech please!"
[LanX]: what's strange is that the "Cowboy you said this already" message is missing #dqiwd

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2017-03-27 16:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.