Acme::WalkMethods - Develope the wrong way
package Your::Package; use base qw(Acme::WalkMethods); 1; # in a script not far away use Your::Package; my $object = Your::Package->new(); $object->foo('5'); $object->bar('5'); print "Foo:" . $object->foo() . "\n" if $object->foo(); print "Bar:" . $object->bar() . "\n" if $object->bar(); # From command line: >perl <yourscript>.pl Can I create bar as a method (y/N)?y Can I create foo as a method (y/N)?y Foo: 5 Bar: 5 Or: >perl <yourscript>.pl Can I create bar as a method (y/N)?y Can I create foo as a method (y/N)?n Bar: 5
Want to start developing the wrong way?
Use this module as your base!
Write all your end code first and decide each time you run your code which methods you want to be able to store data into.
Because acme told me to, this mess has been brought to you by the letter L and the colour Orange.
Only if someone finds a 'good' use for this module.
Leo Lapworth, LLAP@cuckoo.org
To install Acme::WalkMethods, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::WalkMethods
CPAN shell
perl -MCPAN -e shell install Acme::WalkMethods
For more information on module installation, please visit the detailed CPAN module installation guide.