Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^2: How to make an ascii flower variable

by rgiskard (Hermit)
on Oct 19, 2011 at 04:38 UTC ( #932282=note: print w/ replies, xml ) Need Help??

in reply to Re: How to make an ascii flower variable
in thread How to make an ascii flower variable

I cut and pasted that code into emacs. Initially things looked good (the flower appeared to be a flower variable etc.). It didn't work when I ran it. How exactly is this working for you?

use utf8;

$✿ = "works for me?";


perl Malformed UTF-8 character (unexpected end of string) at line +3. Unrecognized character \x9C; marked by <-- HERE after $\342<-- HERE ne +ar column\ 2 at line 3.

Comment on Re^2: How to make an ascii flower variable
Download Code
Replies are listed 'Best First'.
Re^3: How to make an ascii flower variable
by anneli (Pilgrim) on Oct 19, 2011 at 05:38 UTC

    Hmm, how odd! It ran without complaint or error at work; when I try it at home now, I get the same error as you (which is documented as being correct behaviour!).

    I'll have to try again at work tomorrow! ;-)

      Of course, we can always put the flower in a vase:

      use utf8;
      no strict 'refs';
      ${"✿"} = "works for me?";
      say ${"✿"}

      Good Day,

        Well, I think this solution would please everyone, OP included!

        Turns out I was just plain mistaken (though I did find your findings on this topic while Googling/searching PM); I had used a different character (that I knew the UTF-8 byte sequence for) to test with at work, which happened to actually work, but BLACK FLORETTE does not!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932282]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2015-10-09 00:09 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (232 votes), past polls