[Edinburgh-pm] a Perl surprise

Jeff Parsons bynari at gmail.com
Wed Jul 18 10:03:48 PDT 2012


On 18/07/2012 16:06, Aaron Crane wrote:
> Jeff Parsons <bynari at gmail.com> wrote:
>> You said:
>>
>>   wtf qw(6 7 8)
>>
>> is equivalent to:
>>
>>    wtf (('6', '7', '8'))
>>
>> That's actually incorrect and wouldn't be important anyway. '6' is 6 as a
>> string, 6 is 6 as a number, they're not strictly the same thing.
> Hi, Geoff.  I'm not sure I understand the point you're making here.
>

Hi, Aaron. :-) The point I was making was that qw(6 7 8) being 
'equivalent' to ('6','7','8') wasn't the reason that 8 was returned by 
the sub as Nick had suggested, or at least I was under the impression he 
was suggesting.


More information about the Edinburgh-pm mailing list