Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The thing I dont like is I have to wrap it all in a block and do a no strict 'refs'. Keeping in mind the methods really do need to be generated during the init phase, dynaicaly, is there anything wrong with the approach? I assume there must be some nasties if I have to turn off strict refs... What do I need to know? Thanks!!*{"${class}::$method"} = sub { my $self = shift; #more dynamic build stuff here return $self; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Whats wrong with symbol refs here?
by gellyfish (Monsignor) on Feb 05, 2002 at 10:19 UTC | |
|
Re (tilly) 1: Whats wrong with symbol refs here?
by tilly (Archbishop) on Feb 05, 2002 at 12:59 UTC | |
by Anonymous Monk on Feb 05, 2002 at 21:24 UTC | |
by dragonchild (Archbishop) on Feb 11, 2002 at 13:54 UTC | |
|
Re: Whats wrong with symbol refs here?
by rdfield (Priest) on Feb 05, 2002 at 09:43 UTC | |
by Anonymous Monk on Feb 05, 2002 at 09:54 UTC | |
by runrig (Abbot) on Feb 05, 2002 at 10:54 UTC | |
by gellyfish (Monsignor) on Feb 05, 2002 at 11:01 UTC | |
by rdfield (Priest) on Feb 05, 2002 at 10:05 UTC |