Randal L. Schwartz schreef:
> Ruud:
>> <quote src="perlop">
>> The "=>" operator is a synonym for the comma, but forces any
>> word to its left to be interpreted as a string (as of 5.001).
>> </quote>
>>
>> And AFAICS that isn't true:
>>
>> $ perl -MData::Dumper -wle'
>> %n = (00 => Integer, 01 => Floating, 10 => Char, 11 => Double);
>> print Dumper(\%n)
>> '
>> $VAR1 = {
>> '11' => 'Double',
>> '1' => 'Floating',
>> '0' => 'Integer',
>> '10' => 'Char'
>> };
>>
>> So I filed a bug-report about perlop.
>
> Why? What makes 01 and 00 a "word"?
>
> It's acting correctly. You just need the correct definition of word.
Right, but see also the usage of "word" in the same perlop, under
"Regexp Quote-Like Operators":
<quote>
qw/STRING/
Evaluates to a list of the words extracted out of STRING, using
embedded whitespace as the word delimiters.
</quote>
%n = qw(00 Integer 01 Floating 10 Char 11 Double);
There the local meaning of "word" is made much clearer.
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>