in reply to Example of a book
Please remember to use code tags around your code examples.
When using strict you need to declare any variables with my.
#!/usr/bin/perl use strict; use warnings; my $char = chr(0x394); my $code = ord($char); printf "char %s is code %d, %#04x\n", $char, $code, $code;
In Section
Seekers of Perl Wisdom