Skip Menu |

This queue is for tickets about the WWW-Salesforce CPAN distribution.

Report information
The Basics
Id: 47073
Status: resolved
Priority: 0/
Queue: WWW-Salesforce

People
Owner: cwhitener [...] gmail.com
Requestors: iank [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 0.12

Attachments


Subject: ->update requires a hash with 'type' as the "first" key- hashes do not have order
my ($spec,$type) = splice @_,0,2; if ( $spec ne 'type' || !$type ) { carp( "Expected a hash with key 'type' as first argument" ); return 0; } Hashes have no order, by virtue of being nothing more than unordered collections of unique keys and associated values. They cannot be guarenteed to flatten in a particular order, not even during the same execution of a process. Requiring that one key be "first" is a nonsensical condition. As a consequence, calling WWW::Salesforce->update(%somehash) breaks nearly all of the time (except when the RNG is smiling...). ->update('type', 'Case', %the_rest) works but shouldn't be necessary.
Subject: .
Hi Ian, The entire module is being rewritten in a more sane manner. It is far from complete, but documentation is a major effort on this new release. Please take a look into the pre pre pre pre pre pre-Alpha release I've attached here and see if you have any suggestions. Thanks, Chase On Wed Jun 17 15:44:01 2009, IANK wrote: Show quoted text
> my ($spec,$type) = splice @_,0,2; > if ( $spec ne 'type' || !$type ) { > carp( "Expected a hash with key 'type' as first argument" > ); > return 0; > } > > Hashes have no order, by virtue of being nothing more than unordered > collections of unique > keys and associated values. They cannot be guarenteed to flatten in a > particular order, not > even during the same execution of a process. Requiring that one key > be "first" is a > nonsensical condition. As a consequence, calling WWW::Salesforce-
> >update(%somehash)
> breaks nearly all of the time (except when the RNG is smiling...). > ->update('type', 'Case', > %the_rest) works but shouldn't be necessary.
Download WWW-Salesforce-0.200_1.tar.gz
application/x-gzip 13.6k

Message body not shown because it is not plain text.

It looks like Fred took care of this issue quite some time back. Thanks, Chase