On 10/03/2013 12:43 AM, Kenneth Wolcott wrote:
On Wed, Oct 2, 2013 at 9:23 PM, Harry Putnam <rea...@newsguy.com> wrote:
Why is this script showing uninitialized variable warnings?

-----     ------    ---=---    ------     -----
#!/usr/local/bin/perl

use strict;
use warnings;
use File::Find;

my $exe = 33261;
my $eperm;

Looks to me like $eperm is a variable inside the scope of the sub.
That is used without using "my".

nope. he declared it earlier. if you were correct, strict (which he is using) would have caught that.

thanx,

uri

--
Uri Guttman - The Perl Hunter
The Best Perl Jobs, The Best Perl Hackers
http://PerlHunter.com

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to