perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Christophe Boggio <embp...@thefreecat.org>
Subject Re: Problem with %udat and references
Date Fri, 13 Apr 2012 10:41:12 GMT
Le 13/04/2012 10:54, kolikov a écrit :
> $udat{verdict} being a scalar, assigning an array to it makes it a refference.

I assign it a reference to an array

> Embperl is perhaps assigning \@tmp as a reference of reference.

Nope : I'm checking the array's content with Data::Dumper

> But if you say that it refences an empty array, it makes wonder if perl just doesn't
accept this assignation, WITHOUT
> throwing an exception OR embperl just ignores this kind of behaviour.

This works :

	$udat{verdict} = [];
	push(@{$udat{verdict}},$_) foreach (@verdict);

Hopefully, @verdict is a very small array so it doesn't add too much overhead.

 > puzzling ! :(

Crazy ! Maybe Gerald has some explanation or I've missed something in the documentation.

Thanks for your help,

-- 
Jean-Christophe Boggio                       -o)
embperl@thefreecat.org                       /\\
Independant Consultant and Developer        _\_V

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message