|
|
| "be consistent" | |
| PerlMonks |
Re^6: MongoDB replacing an arrayby neilwatson (Deacon) |
| on Aug 26, 2012 at 21:56 UTC ( #989882=note: print w/ replies, xml ) | Need Help?? |
|
There is not much more to show. Most is boring data manipulation that leads to the final array. The array holds only numbers. Nothing embedded.
Above a loop through some collections and for each make the new array. Then I try to replace the array.
The foreach loop above is just to show there is data in @new. That works :). The update fails. The documentation for MongoDB is a bit sparse. I assume my syntax is wrong. Alas, I cannot figure how.
Neil Watson
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||