Re: XML::Simple

[prev] [thread] [next] [lurker] [Date index for 2004/03/10]

From: Jonathan Stowe
Subject: Re: XML::Simple
Date: 14:53 on 10 Mar 2004
On Wed, 2004-03-10 at 11:50, Tom Insam wrote:
> if ($XML::Simple::VERSION eq '2.02') { 
>   return XMLin( $xml, forcearray => ['albums', 'pictures'] );
> } else {
>   return XMLin( $xml, ForceArray => ['albums', 'pictures'] );
> }
> 
> So sure, it's probably not _just_ 2.02, but it's what I'm developing
> against, opposed to what I will probably have to release against,
> currently 2.09.


I hate to rain on your hate but:

  Note: option names are no longer case sensitive so you can use the
  mixed case versions shown here; all lower case as required by versions
  2.03 and earlier; or you can add underscores between the words (eg:
  key_attr).

This from the 2.09 manpage.

But this does beg the question why you are developing with a different
version of a library than the one you will use in production - surely
this completely negates the results of any testing.

/J\
> 
> but. hate.
> 
> .tom
> 

Generated at 16:01 on 31 Jul 2006 by mariachi 0.52