Re: printing content of found file
- From: krahnj@xxxxxxxxx (John W. Krahn)
- Date: Thu, 28 Jun 2007 08:24:18 -0700
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
.
- References:
- printing content of found file
- From: Amichai Teumim
- Re: printing content of found file
- From: John W. Krahn
- printing content of found file
- Prev by Date: Re: missing curly - brain fried
- Next by Date: Re: missing curly - brain fried
- Previous by thread: Re: printing content of found file
- Next by thread: Re: printing content of found file
- Index(es):
Relevant Pages
|
|