----- 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);
> 
> The sub is like this...
> 
> sub update_value {
> $entry{$_[0]}{$key} -> delete (0, "end");
> $entry{$_[0]}{$key} -> insert ("end", $_[1]);
> }
> 
> I get:
> 
> Global symbol "$key" requires explicit package name at v06b.pl line 1561.
> Global symbol "$key" requires explicit package name at v06b.pl line 1562.
> Execution of v06b.pl aborted due to compilation errors.
> 
> If I use $_[2] instead of $key, then it works. Is there a way of passing
> $key as $key to the sub?
> 
> Thanks.
> 
> R.



sub update_value {
my $key = $_[2];
...

Dirk Bremer - Systems Programmer II - ESS/AMS  - NISC St. Peters
USA Central Time Zone
636-922-9158 ext. 8652 fax 636-447-4471

[EMAIL PROTECTED]
www.nisc.cc
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to