Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 chanting in the Monastery: (7)
As of 2024-07-25 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.