[on David Nicol's thought that maybe references should be treated
differently than other scalar data]
>
>But $, @, and % indicate data organization, not type...
>
Perhaps it's a mistake that Perl treats numbers and strings the
same. Perhaps "$" should be broken out into two prefixes: S for
strings, and | for numbers. Use $ when it's unknown what type
a variable will hold, or for a variable that can hold either type.
Sfoo = 'a string';
|bar = 'a number';
$baz = Sfoo || |bar;
And references are right out.
;-)
----------------------------------------------------------------------
Eric J. Roode eric@myxa.com
Senior Software Engineer, Myxa Corporation
Thread Previous
|
Thread Next