Global symbol "$file1" requires explicit package name (did you forget to declare "my $file1"?) at sid.pl line 5. Can't find string terminator "END1" anywhere before EOF at sid.pl line 5.