Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^6: MongoDB replacing an array

by neilwatson (Curate)
on Aug 26, 2012 at 21:56 UTC ( #989882=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $conn = MongoDB::Connection->new;
    my $db = $conn->mydb || die "$!";
    ...
    @cols = $db->collection_names;
    
    foreach $cols (@cols) {
    
  2. or download this
    if ( @new > 1 ){
    
    ...
                     },
                     { 'multiple' => 1, 'safe' => 1 }
          ) || die "$!";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://989882]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2014-09-23 13:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (222 votes), past polls