BatBytes has asked for the wisdom of the Perl Monks concerning the following question:

I have been using the ubiquitous FormMail.pl v1.77 since forever but only recently noticed that it gives this error(?):
Invalid range "■â┐┐┐╛Ç-3" in transliteration operator at... Here is the offending line:

$realname =~ tr# a-zA-Z0-9_\-,./'\200-377##dc;
Can someone please explain what is wrong with this? I am not a newbie but I am FAR from being proficient with Perl. Thanks.

Replies are listed 'Best First'.
Re: Invalid range error...help wanted please
by NetWallah (Canon) on Feb 12, 2014 at 19:15 UTC
    It is complaining about the "\200-377".

    You probably meant "\x{200}-\x{377}" .

    Update:roboticus has pointed out that the OP used the range \0200-\0377 in the transliteration target, which is in octal.

    Therefore, the equivalent hex replacement range is \x80-\xff .

            What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?
                  -Larry Wall, 1992

      Thanks, that got rid of the error message