in reply to Re^4: Distiguishing arguments: number-strings vs real integer
in thread Distiguishing arguments: number-strings vs real integer
This is up to the user of the layer, that's why I need to know if he passed a literal string or number. And to be able to warn him if necessary.
Ok ... so you firstly need to know which option the user has chosen.
Having determined that, I would have thought you could just pass on that user-supplied argument as "$x" (if string was chosen) or "$x"+0 (if integer was chosen) without any need to analyse just what that argument was.
But I've never worked with databases so you should probably simply ignore me (and perhaps even be envious ;-)
Cheers,
Rob
Ok ... so you firstly need to know which option the user has chosen.
Having determined that, I would have thought you could just pass on that user-supplied argument as "$x" (if string was chosen) or "$x"+0 (if integer was chosen) without any need to analyse just what that argument was.
But I've never worked with databases so you should probably simply ignore me (and perhaps even be envious ;-)
Cheers,
Rob
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Distiguishing arguments: number-strings vs real integer (DSL concept)
by LanX (Saint) on Aug 10, 2018 at 15:15 UTC |
In Section
Seekers of Perl Wisdom