Re: Res: Res: Res: Parsing of undecoded UTF-8 will give garbage when decoding entities

[email protected] ("Chas. Owens")
Newsgroups perl.macosx
Message-ID <[email protected]>
On Sep 27, 2008, at 10:00, Bianca Shibuya <[email protected]> wrote:

> Thank you for your help.
> But the content of @$row[7] is a string (I have printed out it). If  
> it is not a string, I cannot identify other variable to apply this  
> function. =( Because the rest of the program is a sequence of ifs  
> similar to the last if.
>
> Thanks in advance.
> Bianca

>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>>
>>
If you said

print @$row[7];

Then that is equivalent to

print join $,, @$row[7];

To really see the value of that expression you need to say

print map { "[$_] " } @$row[7];

This will print the individual items in the list surrounded by brackets.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.