in reply to XMLin is not identifying the input file name passed to it
If the filename contains no directory components XMLin() will look for the file in each directory in the SearchPath (see "OPTIONS" below) or in the current directory if the SearchPath option is not defined.
The search path is initialized to something based on $0. In this case, it's incorrectly initialized to ['']. Try
$data = $xml->XMLin($file, SearchPath => '.');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XMLin is not identifying the input file name passed to it
by greatshots (Pilgrim) on Nov 08, 2006 at 07:58 UTC | |
|
Re^2: XMLin is not identifying the input file name passed to it
by greatshots (Pilgrim) on Nov 08, 2006 at 07:23 UTC | |
by ikegami (Patriarch) on Nov 08, 2006 at 07:33 UTC | |
by Hofmator (Curate) on Nov 08, 2006 at 07:53 UTC | |
by greatshots (Pilgrim) on Nov 08, 2006 at 07:49 UTC |