On Fri, Jul 04, 2003 at 02:18:40PM -0700, David Storrs wrote: > I've got a function that takes several arguments, the first of > which should be a scalar (specifically, a string). I'd like to > have a precondition to verify that the argument is, in fact, a > scalar.
I'll recommend that you *don't* try to do this. If a user of your function wants to do my @args = (133, $x, $y); your_function(@args); you shouldn't mind[*]. The array will get flattened into a list of scalars, and the numeric value will automatically get converted into a string as soon as you use it as a string. -- Steve [*] The built-in functions with a "$@" prototype (like sprintf()) can be irritating. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]