Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^6: MongoDB replacing an array

by neilwatson (Priest)
on Aug 26, 2012 at 21:56 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://989882]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-26 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found