SPUG: odd array ref issue
Colin Meyer
cmeyer at helvella.org
Thu Jan 26 10:20:55 PST 2006
On Thu, Jan 26, 2006 at 10:14:17AM -0800, mike wrote:
> I've totally been pulling my hair out over this and I'm probably missing
> something stupid here but I figured the SPUG eyes would notice it
> immediately
>
>
>
> I have an array ref in $tmp, here is the Data::Dumpage
>
> Thu Jan 26 10:00:40 2006 tmp: $VAR1 = [
> '102',
> '104'
> ];
>
> then I put that into my $params hashref
>
> $params->{donor_pk} = $tmp;
Are you sure that the line in your code doesn't look something more
like:
$params->{donor_pk} = "$tmp";
It seems that your array ref is being stringified somewhere. Perhaps
including a sample of your actual code will shed more light.
-Colin.
>
> then I Data::Dump the $params hashref
>
> Thu Jan 26 10:00:40 2006 params: $VAR1 = {
> 'all' => '1',
> 'Submit' => '1',
> 'view' => 'donors',
> 'donor_pk' => 'ARRAY(0x60234)'
> };
More information about the spug-list
mailing list