Re: Beginning to use the stricts and warnings

2007-04-09 Thread Chas Owens
On 4/9/07, Jean-Rene David <[EMAIL PROTECTED]> wrote: * Chas Owens [2007.04.09 11:00]: > > for (my $i = 0; $i < @banks; $i++) > > If you must loop this way at least do it like this: > > for my $i (0 .. $#banks) {} > > But most likely you don't need to loop that way and it is better to > loo

Re: Beginning to use the stricts and warnings

2007-04-09 Thread Jean-Rene David
* Chas Owens [2007.04.09 11:00]: > > for (my $i = 0; $i < @banks; $i++) > > If you must loop this way at least do it like this: > > for my $i (0 .. $#banks) {} > > But most likely you don't need to loop that way and it is better to > loop this way: > > for my $bank (@banks) {} I've been

Re: Beginning to use the stricts and warnings

2007-04-09 Thread Jeff Pang
Hello, 2007/4/9, Rodrigo Tavares <[EMAIL PROTECTED]>: Hello, I put in my code: if i put in code : my @ARGV = ('a'); Come the message: You shouldn't use 'my' to declare the @ARGV since @ARGV is a special package variable in Perl.Instead you can access this array directly,don't need the de

Re: Beginning to use the stricts and warnings

2007-04-09 Thread Chas Owens
On 4/9/07, Rodrigo Tavares <[EMAIL PROTECTED]> wrote: Hello, I put in my code: use strict; use warnings; So I declared many variables. By example counters and arrays. Using my. My script start the postgres. ./postgresql.pl start|stop|reload|status I'm using this below structure. When I run t