Amichai Teumim wrote:
Thank you John

Why do I need

use warnings;
use strict;

It works without them:

with them i get:

Global symbol "@list" requires explicit package name at ./obj14-2.pl line 7.
Global symbol "$item" requires explicit package name at ./obj14-2.pl line
10.
Global symbol "@list" requires explicit package name at ./obj14-2.pl line
10.
Global symbol "$item" requires explicit package name at ./obj14-2.pl line
11.
Global symbol "$item" requires explicit package name at ./obj14-2.pl line
14.
Global symbol "@file" requires explicit package name at ./obj14-2.pl line
15.
Execution of ./obj14-2.pl aborted due to compilation errors.

Thanks

As you can see you don't *need* them, however you should use them to help you find problems with your code.



John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to