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; }