[EMAIL PROTECTED] 写道:
New to perl (old to Ada, C, C++, COBOL, .....) ....I'm looking at some
existing code.

        read_config ('../config/legacyload.cfg', %ConfigFile);
        @TablePreReq   = keys(%ConfigFile{InputDataFile});


When I run it I get the error  (v. 5.8.4):

syntax error at  cutover.pl line 318, near "%ConfigFile
{InputDataFile"


How about the structure of the hash %ConfigFile?
yes,this statement of keys(%ConfigFile{InputDataFile}) is may not right.
You may say,

keys %ConfigFile;
or,
keys %{$ConfigFile{InputDataFile}};

Based on what hash stru you have.

Please
use Data::Dumper;
print Dumper \%ConfigFile;

and show the results to us.


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


Reply via email to