in reply to what is difference between chr and oct?

I am not able to answer either of your questions, but I think it is significant to point out that you received a warning message, not an error message. Furthermore, you only received the warning because you wisely had warnings in effect. Had you not, your code would have silently proceeded to do something you did not intend.

One way to promote all warnings to errors is as follows:

use warnings FATAL => 'all';

Replies are listed 'Best First'.
Re^2: what is difference between chr and oct?
by xiaoyafeng (Deacon) on Jul 12, 2010 at 17:32 UTC
    Thanks for your reply. You may see above message as a warning other than error, but as matter of fact, it just because chr treat any string as number 0 if closed warning pragma. That means the output will be totally wrong:
    #wrong output: xyf@andy:~$ perl tt.pl xyf@andy:~$ # right output: xyf@andy:~$ perl tt.pl f e e l i n g lxyf@andy:~$




    I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction