in reply to Re^3: replace some emoticons - search pattern needed
in thread replace some emoticons - search pattern needed

Wow! That's really impressing, what you do with your shell. Suppose I have to read perlrun to learn all this stuff!
Finally I understood, for what I have to search: \x{1f618} !!! But why my replacement is not working?
I am stumbled! marek

while(<>) { # foreach (/\x{1f618}/g) {print "hurray! And here is your emoticon!\n" +}; # this is working!!! # foreach (/\x{1f695}/g) {print "hurray! And here is your emoticon!\n" +}; # this is working!!! This is for the taxi s/\x{1f618}/latex_code/g; }

Replies are listed 'Best First'.
Re^5: replace some emoticons - search pattern needed
by Anonymous Monk on Dec 19, 2014 at 11:20 UTC
    Maybe because you forgot to print $_ after replacing...

      I am ashamed! This was it! Suppose the Santa Claus will not come anymore! What a shame!
      Thank you for your help! Great Forum!

        If you get us all holiday presents, we'll ask Santa to put you back on the Nice List. :)