Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

RE: RE: RE: Re: Interfaces

by ivey (Beadle)
on Jun 13, 2000 at 22:44 UTC ( [id://17948]=note: print w/replies, xml ) Need Help??


in reply to RE: RE: Re: Interfaces
in thread Interfaces

merlyn:
BEGIN { for my $fakir (qw(methodOne methodTwo)) { *$fakir = sub { die "undef abstract method $fakir used by ".(shift +); } } }
causes an error with use strict; (Can't use string ("foo") as a symbol ref) and i needed to add
no strict 'refs';
inside the BEGIN:...is there a better way?

--
michael d. ivey, ivey@gweezlebur.com

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-03-29 06:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found