in reply to Re: Re: Re: CGI Table Column Selection
in thread CGI Table Column Selection

Heh, i do always use strict and warnings, this was some test code copied out of my actual program, i didn't put use strict and warnings in this test program because it was only created so i could cut and paste the code into perlmonks :-D

And usually i do my ($scalar1, $scalar2) = @_; or @ARGV however i wrote this sub with 1 parameter and added a second later. I then cut and paste the sub mostly to make the second one so the bad coding practice followed through.
I still feel this code is really messy though, just the general way i went about it _feels_ wrong i'm not sure why.

Neil Archibald
- /dev/IT -
  • Comment on Re: Re: Re: Re: CGI Table Column Selection

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: CGI Table Column Selection
by nysus (Parson) on Jul 09, 2003 at 07:46 UTC
    My only other suggestion is to factor out the common variables, like password and username, used to access the database, and make them global.

    But I see you are from Perth! Hehe, I have some very fond memories of Perth when I was down under back when I was in the Navy. Are the kids still into American cars from the 50s there?

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff";
    $nysus = $PM . $MCF;
    Click here if you love Perl Monks

      Hehe, Yeah i suppose kids still are into those cars, although i am kinda a kid myself being only 20, and i have the worst car ever ;D

      Neil Archibald
      - /dev/IT -