print "\n\nPlease drop the metadata file [vendor instructions/isbn13.xml]:\n\n\t\t>>>"; chomp (my $metadata_file = <>); print $metadata_file; #$metadata_file =~ s/\s$//; open (FILE, "<", "$metadata_file") or die "Could not open '$metadata_file': $!\n"; $metadata = join '', ; #### Please drop the metadata file [vendor instructions/isbn13.xml]: >>>/Users/jefe/Desktop/vendor\ instructions/9781118172773.xml Could not open '/Users/jefe/Desktop/vendor\ instructions/9781118172773.xml ': No such file or directory #### Please drop the metadata file [vendor instructions/isbn13.xml]: >>>/Users/jefe/Desktop/vendorinstructions/9781118172773.xml /Users/jefe/Desktop/vendorinstructions/9781118172773.xml #### Please drop the metadata file [vendor instructions/isbn13.xml]: >>>/Users/jefe/Desktop/vendor\ instructions/9781118172773.xml Could not open '/Users/jefe/Desktop/vendor\ instructions/9781118172773.xml': No such file or directory