Perl config file Help

Hi

In My config file i have 12.122.12.111:2000
A host and a port number.

To read the config file i have written in a perl script like this

my %config;
open my $config, '<','config' or die "Failed to read file :$!";

Its running fine in HP-UX but showing error in solaris box.

error is : Too many arguments for open at client.pl line 5, near ""config" ;"
Execution of simpleclient.pl aborted due to compilation errors.

Plz replyy...
Regards
Harikrishna

The tree-argument form of open is a relatively recent addition to Perl (like, this millenium or last; I forget which). See if taking out the '<' and the comma after it would help.

Thanks era.. its works