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

RE: [cgiapp] CGI::Application 3.0


Hi Darin --

> The major change seems to be:
> 
> 			# Convert array-ref into hash table
> 			foreach my $rm (@{$data[0]}) {
> 				$rr_m->{$rm} = $rm;
> 			}

It looks so puny when cast in the cold light of a diff!  :-)

Yes, this is the most significant change in the new version.  While the
code change is not very big, the new interface is:

    $self->run_modes(
        show_form     => 'show_form',
        add_thingy    => 'add_thingy',
        insert_thingy => 'insert_thingy',
        edit_thingy   => 'edit_thingy',
        update_thingy => 'update_thingy',
        delete_thingy => 'delete_thingy',
    );

 ...Can now be said more simply:

    $self->run_modes([
       'show_form',
       'add_thingy',
       'insert_thingy',
       'edit_thingy',
       'update_thingy',
       'delete_thingy',
  ]);

I updated the major version number because I wanted people to be able to
intuitively identify old interface versions from new interface version.
Of course, the new interface is fully backwards-compatible with the old.


> Anyone want to start a conversation about its speed vs:
> 
> @suppressed = @{$data[0]};
> 
> ?  No, didn't think so.  :-)


Heh...  I think I have a headache from reading that!


TTYL,

-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.