On May 29, 3:21 pm, [EMAIL PROTECTED] (Dr.Ruud) wrote: > Brian schreef: > > > Changing @ to $ is confusing... > > Huh? @ means array, $ means scalar; there is nothing to change.
Presumably, he meant that @array identifies the entire array, while $array[0] identifies the first element of the array, thus "changing" the @ to a $ to access a single element. The mnemonic device is not "@ for array, $ for scalar", but rather: $ is for single elements, be they single elments of arrays or hashes, or actual scalar variables. @ is for lists of data, whether entire arrays, slices of arrays, or slices of hashes % is for an entire hash. Paul Lalli -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/