in reply to Why do I get an 'uninitialized' warning?

Are you sure that $fullname and $email are defined?

Just curious, what do all the '=>'s do in the system call? aren't these two lines identical?

system('/usr/local/bin/AddVirtUser' => "tpasswd=$password", => $domain, => $username, => $fullname, => 5, => '0 0 0', )
and
system('/usr/local/bin/AddVirtUser' => "tpasswd=$password", undef, $domain, undef, $username, undef, $fullname, undef, 5, undef, '0 0 0', undef)
?

-- Dan

Replies are listed 'Best First'.
Re: Re: Why do I get an 'uninitialized' warning?
by Anonymous Monk on Sep 30, 2002 at 18:19 UTC
    I don't know why i did it like that. What is the proper way of passing those variables to the AddVirtUser command?

      Not so much about the AddVirtUser command, but about the system command - just pass the parameters as a list: exactly what you did, just leave out the "=>"s.

      -- Dan