On Jul 26, 2004, at 10:39 PM, [EMAIL PROTECTED] wrote:
$transaction->notes( 'myarray', @array ) ;
The receiving plugin does this:
@array = $transaction->notes( 'myarray' ) ; foreach $element ( @array ) { #whatever }
Try
$transaction->notes(myarray => [EMAIL PROTECTED]);
and
$array_ref = $transaction->notes('myarray');
for my $element ( @$array_ref ) {
...
}The sending plugin sets several elements in the array, which I
have verified are actually done, but the receiving plugin only finds the
first element. Can someone please explain why and/or suggest a fix?
The notes method only takes a key/single value pair, so you have to pass the value as reference if it's not a simple scalar.
- ask
-- http://www.askbjoernhansen.com/
