in reply to Re: Different behaviour in characters in string vs. array?
in thread Different behaviour in characters in string vs. array?

Removing the "no warnings" would produce a warning. There's a '#' inside the 'qw//', and Perl gets a bit unhappy about those.

ben@Tyr:~$ perl -wle'print qw/#/' Possible attempt to put comments in qw() list at -e line 1. #

--
"Language shapes the way we think, and determines what we can think about."
-- B. L. Whorf

Replies are listed 'Best First'.
Re^3: Different behaviour in characters in string vs. array?
by ccn (Vicar) on Dec 10, 2008 at 22:41 UTC
    In fact there are no # characters in the code. They appear on OP post because of PM can not display unicode characters inside of <code> block. The real code is:
    @kmap = qw/A B V G D E + J Z I Y K L M N O P R S T U F H C X ! @ # $ % ^ & * a b v g d e = j z i y k l m n o p r s t u f h c x 1 2 3 4 5 6 7 8/;
    @rmap = qw/А Б В Г Д Е Ё Ж З И Й К Л М Н О П Р С Т У Ф Х Ц Ч Ш Щ Ъ Ы Ь Э Ю Я а б в г д е ё ж з и й к л м н о п р с т у ф х ц ч ш щ ъ ы ь э ю я/; }
      What's that between "@" and "$" in @kmap?
        Grate! My bad. Yes it's really uncomfortable case to use qw()