Hello Monks,

My problem may be quite simple.
I applied the following test script to the perl module:
‘Locale- Hebrew-1.04’, http://search.cpan.org/~autrijus/Locale-Hebrew-1.04/Hebrew.pm

Is something missing or obviously wrong?
Are there any clues in the output, i.e. only the numbers(\5e9\5dc\5d5\5dd\20\31\32\33 = \ם\ו\ל\ש\space\1\2\3) compute?

#!/usr/local/bin/perl -w # # This program demonstrates Locale::Hebrew v1.04 support for UNICODE # (use Perl 5.8 and above) use Locale::Hebrew 1.04; use locale; eval (' use 5.8.3; use encoding utf8; my $msg= "\x{5e9}\x{5dc}\x{5d5}\x{5dd}\x20\x31\x32\x33"; print "Original utf8: ",$msg, "\n"; my $new_msg = hebrewflip($msg); print "Result utf8: ","$new_msg", "\n"; '); print $@ if $@; ------------------------------- Output: Original utf8: �©��� Result utf8: 123 ��©
*actually, my output presents an empty square in place of "&65533", which, if written correctly comes out here as "�" (interesting?)

Much thanks for any guidance


In reply to Unicode (Hebrew) Module by lev

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.