greatshots has asked for the wisdom of the Perl Monks concerning the following question:


I am executing very simple program to parse the XML file.

#!/usr/bin/perl my $file = shift; use XML::Simple; die "Can't find file \"$file\"" unless -f $file; $xml = new XML::Simple; print "Input file :$file:\n"; # read XML file $data = $xml->XMLin($file); OUTPUT perl layer.xml Input file :layer.xml: Could not find layer.xml in at line 13
though I have the file_name in the current directory, why I am getting that error ? any idea ?