in reply to Reoccuring message

Always:

use strict; use warnings;

Also, use lexically-scoped variables, e.g.:

my @array ... my $i ... my $element ...

And I think you may have meant the following:

$i < 10 $array[$i]

Hope this helps!

Replies are listed 'Best First'.
How to remove CR LF in Notepad++
by truthseeker66 (Novice) on Oct 04, 2012 at 19:34 UTC
    Now I see CR LF at the end of every line in Notepad++. I didn't see this before and suddenly it appeared. Could you tell me how to remove this? #/usr/bin/perl CR LF . . . . Thank you,

      Hi truthseeker66,

      Not exactly a Perl question (I think), but in Notepad++, there should be a paragraph icon in the toolbar with a tooltip of "Show All Characters". Making sure that button is "out" (unpressed? what's the real term?) should make the CR/LF characters not show.

      Otherwise, going to View / Show Symbol / Show All Characters should do the same thing as the toolbar button - just make sure that menu item is not checked.

      Enjoy,
        Thank you for showing me how to remove it. Now it's gone.
        Thank you so much.
        Thanks
        View / Show Symbol / Show All Characters worked fine for me. Thanks a lot.
        THAAAAAAANK YOU!!!! You helped me s oooo much!!!!
        Thank you. It is working
        Thanks it worked