bug w/ XML::Simple + File::Spec?
by Fritz Mueller other posts by this author
Jan 31 2003 5:31PM messages near this date
view in the new Beta List Site
Re: oracle connection
|
RE: determining if a scalar is an integer or not
Hi all:
The following small script exhibits strange behavior on all of my ActivePerl
5.8 installs:
use XML::Simple;
use File::Spec::Functions;
$config = XMLin('<opt builddir="c:/foo" /> ');
print catfile($config-> {'builddir'}, 'bar') . "\n";
print catfile($config-> {'builddir'}, 'bar') . "\n";
print catfile($config-> {'builddir'}, 'bar') . "\n";
The problem happens with the second print statment. On some machines, this
just hangs Perl indefinitely. On others, it returns a bogus character in
the path string where the ':' should be, so the output looks like this:
C:\foo\bar
Cf\foo\bar
C:\foo\bar
Also, if I manually create the $config hash reference instead of using
XML::Simple (i.e. $config = { builddir => 'c:/foo/' }; ) then everything is
also fine.
Can anybody spare a clue for me on this one? I'm using XML::Simple 1.06 and
File::Spec 0.82.
thanks,
--FritzM.
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
|