in reply to Re^6: There's Only One Way To Do It
in thread There's Only One Way To Do It

Howdy!

That depends on what you mean when you say "type". I chose to set the values for "type" as "scalar", "array", and "hash", being the fundamental data types (and ignoring some other, more esoteric, flavors). The number/string distinction is, in my consideration, not a part of the "type"; numbers and strings are each scalars.

Think of them as an external representation. Some data may not have a meaningful numeric representation, but consider also a hex representation as another flavor. Regardless of the representation, the datum is a single item -- a scalar. It may be an encoding of multiple values that can be teased apart, but that, again, does not make it then a hash or an array.

yours,
Michael
  • Comment on Re: Re^6: There's Only One Way To Do It