[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] FNG



Christian Brechbuehler wrote:
> 
> First, $x is a string.  Then it is a number. My question: How many
> kinds of "scalars" exist?
> 

Perl stores both the numeric and string representations of a scalar
variable.  The active representation is whichever was used last.  Most
operators and functions in Perl don't care which representation is active.
As documented, however, the bitwise operators (& | ^ ~) behave differently
depending on whether the operand(s) are numbers or strings.

Ronald

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch