えー。途中経過です・・

#!/perl
#ex2.plx
use warnings;
use strict;
print "Hexadecimal and Octal number converter\n\n Please enter the Hexadecimal number:";
my $hex = <STDIN>;
print hex $hex,;

としたら、0xFF→255
となって変換できたんですけど・・こんなエラーが↓

Illegal hexadecimal digit'
' ignored at ex2.plx line7, <STDIN> line 1.
255

このエラーの最後に255って出たんですけど。。このエラーは無視したら怒られますか??
ま、いっか。おし、次はOctal!