Leo Lapworth > Acme-WalkMethods-0.1 > Acme::WalkMethods

Download:
Acme-WalkMethods-0.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.1   Source  

NAME ^

Acme::WalkMethods - Develope the wrong way

SYNOPSIS ^

  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

DESCRIPTION ^

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.

WHY? ^

Because acme told me to, this mess has been brought to you by the letter L and the colour Orange.

PROBLEMS? ^

Only if someone finds a 'good' use for this module.

AUTHOR ^

Leo Lapworth, LLAP@cuckoo.org