The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: Error!
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 07-17-2008
KevinADC KevinADC is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2008
Posts: 731
Those are warnings, not errors. This line in your code should just be removed:

@file_name = $dir . $fname;

it appears to not be doing anything and its not the correct way to assign values to an array anway. Do this to try and track down the missing scalar value:


Code:
($inode,$fname) = split (' ', $record);
print "[$inode] - [$fname]\n";


I think one or both of those scalars is not getting defined. The [] are to let you know if they are blank.

Or you could just drop the -w switch on the shebang line and the warnings will not be output.