On Wednesday 21 June 2006 16:23, Smith, Derek wrote: > I am getting the following error yet the script is doing what I need it > to do restart a process: > > > > Use of uninitialized value at /usr/local/admin/named_monit.pl line 71 > (#1) > >
What is the code at line 71? Is it something like $var1=$var2; or if ($var2 == 'fred') { If so, you're trying to read a value from $var2 before you've written a value to it, hence the warning message given. -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>