http://www.perlmonks.org?node_id=1013201


in reply to Re^16: The Most Essential Perl Development Tools Today (negative)
in thread The Most Essential Perl Development Tools Today

I will look into this. But CGI::Application seems hevily dependant on use of $self-> and returning from each runmode. http://search.cpan.org/~markstos/CGI-Application-4.50/lib/CGI/Application.pm
  • Comment on Re^17: The Most Essential Perl Development Tools Today (negative)

Replies are listed 'Best First'.
Re^18: The Most Essential Perl Development Tools Today (negative)
by BrowserUk (Patriarch) on Jan 14, 2013 at 12:48 UTC

    If you are intent on optimising CGI::Application, from a quick glance only, there seems to be plenty of scope for it that will probably yeild greater benefits than the removal of return statements. That said though, there is probably nothing else that will yeild benefits for so little effort :)

    If you choose to test it, be aware that there is one type of return statement that your shouldn't blindly remove:

    return; # Otherwise, return undef

    Omit that bare return and you will change the result.

    Also note: I've never used CGI::Application, so bear that into your considerations.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.