Thanks, guys.
I'm not sure I can explain what I thought, but here's a go...
I thought that:
If you define a variable with 'my' in the main part of the script, it is
available to all parts of that script, including subroutines.
In a subroutine, if you define a variable that is only used in that
-Original Message-
From: Beckett Richard-qswi266 [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 7:29 AM
To: [EMAIL PROTECTED]
Subject: RE: Trouble with my variables.
Thanks, guys.
I'm not sure I can explain what I thought, but here's a go...
I thought
I must have missed the first posting/response, but it
looks like you are using use strict; but not declaring
your $key variable in the right scope.
If you want to use $key as a global you need to declare
it outside of a subroutine using my $key;
If you are trying to pass arguments to your
- Original Message -
From: Beckett Richard-qswi266 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 18, 2003 10:07
Subject: RE: Trouble with my variables.
Still having harassments...
I now invoke the sub thusly...
update_value(ftp, $ftp{$key}{value}, $key
-Original Message-
From: Beckett Richard-qswi266 [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 10:07 AM
To: [EMAIL PROTECTED]
Subject: RE: Trouble with my variables.
Still having harassments...
I now invoke the sub thusly...
update_value(ftp, $ftp{$key}{value
]]
Sent: Tuesday, February 20, 2001 10:19 AM
To: Perl Win32 Users List
Subject: Trouble my "my" variables in separate configuration file
Hi, there:
Trying to understand why, if I declare a bunch of my variables in a file,
everything works fine. But when I put them in a separate configur