use strict; use warnings; if ("\x00" eq "") { print "they are the same"; } else { print "they are not the same"; } #### #include int main() { if (!strcmp("", "\x00")) { cout << "they are the same" << endl; } else { cout << "they are different" << endl; } }