ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-users
perl-win32-users
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved