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 correspondingtable collection.
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
|
---|
In Section
Seekers of Perl Wisdom