Greetings,

Where can I get more information on Perl's most common error codes? Is there a 
single source (repository/resource) for such most frequently encountered error 
codes?

[code-1]
use strict;
use warnings;

my @names = qw/bat, ball, %&!*, king, (^@), eagle, zebra/;
foreach (@names) {
    print "$_\n" if /\w/;
}
[/code-1]

[output-1]
Possible attempt to separate words with commas at C:/Users/shaji 
kalidasan/workspace/juno-sr1/shaji/Shaji Code Snippets/hari.pl line 4.
bat,
ball,
king,
eagle,
zebra
[/output-1]

[code-2]
use strict;
use warnings;

my @names = qw/orange apple %&!*# banana (^@) grapes mango/;
foreach (@names) {
    print "$_\n" if /\w/;
}
[/code-2]

[output-2]
orange
apple
banana
grapes
mango
Possible attempt to put comments in qw() list at C:/Users/shaji 
kalidasan/workspace/juno-sr1/shaji/Shaji Code Snippets/hari.pl line 4.

[/output-2]

So considering these two programs mentioned above, I am getting the following 
warning messages

1) Possible attempt to separate 
words with commas at C:/Users/shaji 
kalidasan/workspace/juno-sr1/shaji/Shaji Code Snippets/hari.pl line 4.

2) Possible attempt to put 
comments in qw() list at C:/Users/shaji 
kalidasan/workspace/juno-sr1/shaji/Shaji Code Snippets/hari.pl line 4.

Please suggest some pointers or resources for this type of frequently 
encountered error codes/warnings and its possible meanings.


Any help is highly appreciated.

 
best,
Shaji 
-------------------------------------------------------------------------------
Your talent is God's gift to you. What you do with it is your gift back to God.
-------------------------------------------------------------------------------

Reply via email to