Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Creating a perl delete statement with MongoDB

by Theodore (Friar)
on Jul 20, 2017 at 13:02 UTC ( [id://1195606]=note: print w/replies, xml ) Need Help??


in reply to Creating a perl delete statement with MongoDB

How would you differentiate between one input versus another?
For example, if you expect all names to be strings and all ids to be integers, you could use looks_like_number from Scalar::Util to decide if the input is a name or an id and delete from the corresponding table collection.
  • Comment on Re: Creating a perl delete statement with MongoDB

Log In?
Username:
Password:

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

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

    No recent polls found