http://qs1969.pair.com?node_id=111921


in reply to 1 vs "1"

You can't. Perl scalars can be used both as numbers and strings. Perl converts between the two internally and seamlessly.

Actually, that's not completely true. You might be able to do some deep XS magic to find out whether the string slot or the number slot in the SV has been used, but I'm guessing that you don't really want to go there :)

--
<http://www.dave.org.uk>

Perl Training in the UK <http://www.iterative-software.com>