Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 musing on the Monastery: (7)
As of 2015-07-03 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls