in reply to Array definition error
Is going to set the value to be \@outputs only (it will override).$trainset[scalar(@trainset)] = \@inputs; $trainset[scalar(@trainset)] = \@outputs;
So you should get 0 and 1 (the values of the outputs only) as your array elements.
Ok, nevermind, I'm thoroughly confused :)
I tested this and found the outputs to be the same except that the @trainset values are treated as strings.
$VAR1 = [ [ '0', '0' ], [ '0' ], [ '0', '1' ], [ '1' ] ]; $VAR1 = [ [ 0, 0 ], [ 0 ], [ 0, 1 ], [ 1 ] ];
--------------
"But what of all those sweet words you spoke in private?"
"Oh that's just what we call pillow talk, baby, that's all."
"But what of all those sweet words you spoke in private?"
"Oh that's just what we call pillow talk, baby, that's all."
In Section
Seekers of Perl Wisdom