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 the script
como the message :

Use of uninitialized value in string eq at
./postgresql.pl line 67

if i put in code : my @ARGV = ('a');
Come the message:

sh: -c: line 0: unexpected EOF while looking for
matching `''
sh: -c: line 1: syntax error: unexpected end of fil


I tried create this array, but all attempts fail.

How I can to resolve this problem ?

if ($ARGV[0] eq 'stop')
{
  print "Stopping PostgreSQL:\n";
  unless (fork)
    {
       for (my $i = 0; $i < @banks; $i++)
        {
          print "Hello World !"
        }
    } # fecha fork
   }


best regards,

Faria

__________________________________________________
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/ 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to