dragonchild has asked for the wisdom of the Perl Monks concerning the following question:
It's not only not compiling, but it's not telling me why nor is it allowing me to go into the debugger (a truly last resort!). This is being executed in a section of code that is called as a class method. The method is defined in the parent class and is called likefor (@attribute_list) { my $sub = "package $package; sub get$_ { \$_[0]->get($_) }; "; eval $sub; }
If I comment out the eval and just define the methods myself, I'm all good. But, that sorta doesn't finish the job. *sighs*Foo->define_attributes(qw(attr1 attr2 attr3));
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Weird eval behavior...
by converter (Priest) on Oct 09, 2001 at 22:22 UTC | |
|
Re: Weird eval behavior...
by Fletch (Bishop) on Oct 09, 2001 at 21:43 UTC | |
by dragonchild (Archbishop) on Oct 09, 2001 at 21:47 UTC | |
by Fletch (Bishop) on Oct 09, 2001 at 22:39 UTC | |
|
Re: Weird eval behavior...
by chromatic (Archbishop) on Oct 10, 2001 at 00:02 UTC | |
|
Re: Weird eval behavior...
by myocom (Deacon) on Oct 09, 2001 at 21:37 UTC | |
|
Re: Weird eval behavior...
by perrin (Chancellor) on Oct 09, 2001 at 21:40 UTC |