perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Christophe Boggio <>
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)                       /\\
Independant Consultant and Developer        _\_V

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message