As far as I know, sub declaration won't take Unicode literals in Perl 5. Calls will, though, so this works for me:
#!/usr/bin/perl use utf8; *{"ש"} = sub { print "o hai\n" }; ש(); On Thu, Jul 1, 2010 at 5:01 PM, Chanan Berler <bc.ot...@gmail.com> wrote: > Hi Shlomi, > > Since I wanna do a quick review on perl (starting working as perl > programmer again) > I went/still going over the book you wrote: will let you know if i find > anything > > found this comment: the code using utf-8 doesn't work for me > tried: > > #!c:\perl\bin\perl.exe > use utf8; > sub ש > { > print "Hello"; > }; > my $pounds = ש('AAA'); > > On Tue, Jun 29, 2010 at 8:27 PM, Shlomi Fish <shlo...@iglu.org.il> wrote: > >> >> ---------- Forwarded Message ---------- >> >> Subject: [sf-perl] Crowd sourcing copy editing >> Date: Tuesday 29 Jun 2010, 18:47:07 >> From: yary <not....@gmail.com> >> To: san francisco perl user group <sf...@sf.pm.org> >> >> Just saw this post, requesting comments on a Modern Perl book >> >> >> http://www.modernperlbooks.com/mt/2010/06/modern-perl-the-book-the-draft.html >> >> -y >> _______________________________________________ >> SanFrancisco-pm mailing list >> sanfrancisco...@pm.org >> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >> >> ----------------------------------------- >> -- >> ----------------------------------------------------------------- >> Shlomi Fish http://www.shlomifish.org/ >> http://www.shlomifish.org/humour/ways_to_do_it.html >> >> God considered inflicting XSLT as the tenth plague of Egypt, but then >> decided against it because he thought it would be too evil. >> >> Please reply to list if it's a mailing list post - http://shlom.in/reply. >> _______________________________________________ >> Perl mailing list >> Perl@perl.org.il >> http://mail.perl.org.il/mailman/listinfo/perl >> > > > > -- > =================== > ---- Chanan Berler ---- > =================== > > _______________________________________________ > Perl mailing list > Perl@perl.org.il > http://mail.perl.org.il/mailman/listinfo/perl > -- Gaal Yahas <g...@forum2.org> http://gaal.livejournal.com/
_______________________________________________ Perl mailing list Perl@perl.org.il http://mail.perl.org.il/mailman/listinfo/perl