in reply to Re^2: Dealing with huge text string
in thread Dealing with huge text string

Ah young Browser, wide characters are no laughing matter!

Have you ever done any web programming? If so then you'll have run into wide chracters when using HTML entities.

How about this, try this code and witness the power of wide characters, which really do exist!
use LWP::UserAgent; open($F, '>:utf8' , 'wide-chars-example.html'); $url = 'http://www.w3schools.com/tags/ref_symbols.asp'; $html = LWP::UserAgent->new()->get($url)->content; print $F $html;
Now open the newly made file using your method... Try:
your_method: { local $/ = 2; #open 'wide-chars-example.html', process the 'records' }
You'll get an interesting surprise!

Take care!

Replies are listed 'Best First'.
Re^4: Dealing with huge text string
by BrowserUk (Patriarch) on Mar 29, 2008 at 09:15 UTC

    Of course they do. I deal with them all the time...when I have to.

    But I do not waste effort supporting the two greatest evils in software development today--What-if pessimism and Wouldn't-it-be-nice-if optimism--in one-liners that run for a few seconds and may never be used again.

    Let's see. My response was posted 4 minutes after the question was asked--and it worked. Yours came 6 hours later. By my reckoning, assuming a very conservative 7 hour day--7*60 / 4 = 105 * 6 / 24 = 90 days--on that showing it would take you 3 months to what I would do in a day? Nah! That can't be right.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.