![]() |
|
"be consistent" | |
PerlMonks |
Re: Creating a perl delete statement with MongoDBby Theodore (Friar) |
on Jul 20, 2017 at 13:02 UTC ( #1195606=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|