in reply to Re: Re: Re: Simple hash assignment...or is it?
in thread Simple hash assignment...or is it?
Wow...that's exactly the problem. I added a Dump after the second foreach loop, and came up with this:
$VAR1 = {
'en0' => 'ent0',
'en1' => 'ent1'
};
$VAR1 = (
'ent0',
'ent1'
);
Thanks so much! That's a heck of a caveat...err...feature to have.
P.S. The following is the docs on the foreach loop that are in my Camel (Ver. 1):
The foreachloop iterates over a list value and sets the control variable (var) to be each element of the list in turn...
I guess that implicitly states what you said, but it's not extremely obvious...
|
|---|