phranque - 5:27 am on Apr 22, 2010 (gmt 0)
welcome to WebmasterWorld [webmasterworld.com], rasen!
since you truncated your script you have excluded the part of the script that caused the errors.
flying blind we'll have to guess at possibilities.
in general, the "requires explicit package name" error message is caused when you specify the strict pragma ("use strict;") and haven't used the "my" function to declare local variables ("my ($url);").
it is possible that you have a cascade of errors where the undeclared local variable created the subsequent conditions for the other errors reported.