Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: SVN::Client subclassing issue

by Anonymous Monk
on Sep 27, 2011 at 20:21 UTC ( #928174=note: print w/ replies, xml ) Need Help??


in reply to Re^3: SVN::Client subclassing issue
in thread SVN::Client subclassing issue

See AUTOLOAD section of Modern Perl: the free book, and mind the caveats

Assuming hashref has-a 'SVN::Client'

sub AUTOLOAD { my ($name) = our $AUTOLOAD =~ /::(\w+)$/; my $method = sub { my $self = shift; return $self->{'SVN::Client'}->$name( @_ ); } no strict 'refs'; *{ $AUTOLOAD } = $method; return $method->( @_ ); }


Comment on Re^4: SVN::Client subclassing issue
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2014-10-30 17:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (208 votes), past polls