Scarborough has asked for the wisdom of the Perl Monks concerning the following question:
Needless to say I am panicing a little.my $data = XMLin("C:\\core\\jobs_1.xml"); #works perfectly my $filename = $config->{'DRIVE'}.$config->{'JOBS_XML_FILE'} print $filename."\n"; my $data = XMLin($filename); __OUTPUT__ C:\\core\\jobs_1.xml panic: pp_match start/end pointers at C:/Perl/lib/File/Basename.pm lin +e 186.
And I'm still getting the same message;use strict; my $config = XMLin("config.xml"); my $data = XMLin("C:\\core\\jobs_1.xml"); #works perfectly my $config = XMLin("config.xml"); my $filename = $config->{'DRIVE'}.$config->{'JOBS_XML_FILE'} $filename =~ s/\\\\/\\/g; print $filename."\n"; my $data = XMLin($filename); __OUTPUT__ C:\core\jobs_1.xml panic: pp_match start/end pointers at C:/Perl/lib/File/Basename.pm lin +e 186.
This is perl, v5.8.3 built for MSWin32-x86-multi-thread (with 8 registered patches, see perl -V for more detail) Copyright 1987-2003, Larry Wall Binary build 809 provided by ActiveState Corp. http://www.ActiveState. +com ActiveState is a division of Sophos. Built Feb 3 2004 00:28:51
But this is not the problem. After some investigation I found the problem must be in Komodo which I am using to edit and run this program. When I ran it at the command line no problems XMLin read the file and and the program continued on its merry way. Strange
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error in File::Basename
by holli (Abbot) on Sep 28, 2005 at 10:51 UTC | |
|
Re: Error in File::Basename
by GrandFather (Saint) on Sep 28, 2005 at 10:55 UTC | |
|
Re: Error in File::Basename
by Steve_p (Priest) on Sep 28, 2005 at 16:58 UTC | |
|
Re: Error in File::Basename
by dcd (Scribe) on Sep 28, 2005 at 19:40 UTC |