Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: stupid mistake in DBI code

by Fletch (Chancellor)
on Apr 26, 2011 at 16:22 UTC ( #901391=note: print w/replies, xml ) Need Help??


in reply to stupid mistake in DBI code

If you actually indented sensibly you might be able to follow the flow of your code better. Get thee to a Perl::Tidy-ery.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^2: stupid mistake in DBI code
by fidesachates (Monk) on Apr 26, 2011 at 16:24 UTC
    I misdiagnosed his problem because of the lack of indentation. On a side note, I found vim does a great job of indenting code for you.
    1) :set filetype=perl 2) :filetype indent on 3) :e 4) gg=G
      Thanks folks, I appreciate you taking the time. I found the error; I'm emptying @values right after i fill it. Blessings; Cliff
      This is also easy to do in Vi or Vim:
      :%!perltidy
      You could even create a shortcut to make it even easier :-)