Smylers wrote:

Oh.  I'd been assuming that quote marks indicated strings, and that,
while a string containing only digits could obviously be treated as a
number (as in Perl 5), it wouldn't be one without being provoked.

Correct.



What about:

$x = '0345';

Is that a number?

Nope. A string (unless C<$X> is otherwised typed).



What about if the variable contains a line read from user input?  As a
programmer I'd expect that to be a string

You'd be right (unless, of course, the variable's storage type forced a coercion during the assignment).



Damian

Reply via email to