in reply to Re^2: form processing problem
in thread form processing problem

Object oriented approach makes programmers who are conversed with C++ think that they know what's going on... ;)


Seriously, the given example notwithstanding, I've seen lots of code with
use CGI qw/:standard/ ; print redirect('http://www.nowhere.to.go') ;
I mean, Isnt it useless to clutter up your namespace with imported symbols just to use next-to-nothing from it??


Manav

Replies are listed 'Best First'.
Re^4: form processing problem
by merlyn (Sage) on Mar 24, 2005 at 16:28 UTC
    Well, in that case, I'd advocate "use CGI 'redirect'", actually.

    But really, at some point, it becomes "the cost of my time to optimize the import or use OO invocations" vs "the cost of 5 hits a minute on a webserver". If the trade is against 50 hits a second, your argument holds water, but at 5 hits a minute (fast even for the majority of operations), who cares? {grin}

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.

      Well, in that case, I'd advocate "use CGI 'redirect'", actually.

      Of course ;) Thats why I said, "given example not withstanding".
      Although have never been involved in such a trade-off, I guess everybody does expect 50 hits a second on his website a second when he/she is designing it.

      The real reason for posting here was to get the author to know (and probably keep-in-mind) that there is more than one method there. I guess referring to the man-page might also have been a good option.....



      Manav