Acme::WalkMethods - Develope the wrong way


Acme-WalkMethods documentation  | view source Contained in the Acme-WalkMethods distribution.

Index


NAME

Top

Acme::WalkMethods - Develope the wrong way

SYNOPSIS

Top

  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

Top

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?

Top

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

PROBLEMS?

Top

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

AUTHOR

Top

Leo Lapworth, LLAP@cuckoo.org


Acme-WalkMethods documentation  | view source Contained in the Acme-WalkMethods distribution.