[H-GEN] fscking perl

Bradley Marshall bradm at humbug.org.au
Wed Sep 2 22:04:52 EDT 1998


Hey,

> Filehandle main::Van Morrison never opened at ./insert.pm line 67.
> Can't use an undefined value as a symbol reference at ./insert.pm line 68.
> 
> the script is called via:
> nikolai at Ukraine ~/my_DB_stuff/scripts $ ./insert.pm -d CD_Collection "1"
> "Van Morrison"
> 
> this script is to be called from another to populate a database 
> the two lines in questions are:
> 
> print $Name "\n";
> print $Value "\n";
> 

Which is expected behaviour from your script - what yo're doing is trying
to print to filehandles $Name and $Value - try adding a . between the
variable and the \n, so the lines look something like:

print $name . "\n";
print $value . "\n";

Hope that helps,
Brad
         +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
	 | Bradley Marshall    | http://www.humbug.org.au/~brad |
	 | System/Network Admin|    brad at pion.humbug.org.au     |
   	 | Plugged In Software |    bmarshal at plugged.net.au     |
	 +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
     "Sysadmins are the Marine Corps of the Internet."--Richard Letts






More information about the General mailing list