[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cgiapp] CGI::Application 3.0


Hi Jeff --

> also, what if your run modes are outside of the main module.
> 
> ie
> 
> $self->row_modes(
>    do_this => &util::do_that()
> }

The new interface for run_modes() does not prevent you from using the
old interface.  The purpose of this new interface is simply to speed
along a very common use-case.

If your coding style does not accommodate method names which exactly
match run-mode names then you should continue to use the old-style
interface.  The old interface will never go away, so you should have no
fear that code you've written will have to be changed.

You shouldn't even feel a need to change the way you write your code in
the future!  Although this new interface suits my style of coding, I am
not trying to encourage people to adopt this style.  By all means --
feel totally comfortable continuing to do things as you have grown
accustom.

Warmest regards,

-Jesse-


--

  Jesse Erlbaum
  The Erlbaum Group
  suppressed
  Phone: 212-684-6161
  Fax: 212-684-6226





---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.