in reply to Moose log string class
... jabowery ... Please advise.
a) perltidy
b) word explanation of problem, question, ahead of "color
c) check the cookbook
I suspect there must be a way to define an attribute called "log_string" with a "reader" and a "writer" rather than the method "log_string".
Yes, its called an object, so log_string is an object with a reader/writer/anythingyouwant
I suspect there must be a way to use the class's list @log_string_parts rather than explicitly listing sequences of attribute accessors
Yeah, my $method = $obj->can('method'); $obj->$method; ... see Modern Perl a loose description of how experienced and effective Perl 5 programmers work....You can learn this too.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Moose log string class
by jabowery (Beadle) on Feb 12, 2015 at 02:35 UTC | |
by Anonymous Monk on Feb 12, 2015 at 03:38 UTC |