in reply to Copying Files to MySQL

More likely is that it's not opening for some reason but since you don't check the return value of your open call you don't know why.

open( XML_FILE, "./xml_files/$xml_file") or die "Can't open './xml_files/$xml_file': $!\n";

Update: Gah, dropped a bang there. (friedo noticed as well)

Replies are listed 'Best First'.
Re^2: Copying Files to MySQL
by johngg (Canon) on Apr 20, 2007 at 20:30 UTC
    Perhaps you meant $! rather than a bare $ at the end of the die?

    Cheers,

    JohnGG