http://www.perlmonks.org?node_id=1195606


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