http://www.perlmonks.org?node_id=450336


in reply to Why use strict is good, and barewords are bad

oct is a reserved word. I notice that the following works fine, however:
@months = qw/jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec/;
I always use this format or enclose the text inside quote marks.

Replies are listed 'Best First'.
Re^2: Why use strict is good, and barewords are bad
by cog (Parson) on Apr 22, 2005 at 10:18 UTC
    Of course it does. You're quoting a single word (which happens to have 47 chars :-)

    @months is ending up with one single element O:-)

Re^2: Why use strict is good, and barewords are bad
by bart (Canon) on Apr 22, 2005 at 17:27 UTC
    You're not running this with warnings enabled, I'm sure.

    And qw is an addition from somewhere in Perl5's history.