I'm trying to run a Perl script on a HPUX box (ActivePerl latest build) and am
having a problem with the "(" ????

The top of the script (the "my" errors) are all when declaring variables.  I'm
not sure why.  After that, i open a file and loop through it like this ....

=============================== START CODE
open( CONFIGFH , "<BW_REV_CONFIG.TXT" )
    or die "can not open configuration file, dying\n\n";
my $linecounter = 0;
while( <CONFIGFH> )
{
=============================== END CODE

When i take out the parrends in the "open" function call, it then erros out on
the while parrend!  I'm clueless here, scanning through all sorts of results
from google.

Here's what i get with the code above...

$ ./bw_convert.pl
./bw_convert.pl[20]: my:  not found.
./bw_convert.pl[21]: my:  not found.
./bw_convert.pl[22]: my:  not found.
./bw_convert.pl[23]: my:  not found.
./bw_convert.pl[24]: my:  not found.
./bw_convert.pl[25]: my:  not found.
./bw_convert.pl[26]: my:  not found.
./bw_convert.pl[27]: my:  not found.
./bw_convert.pl[28]: my:  not found.
./bw_convert.pl[30]: Syntax error at line 30 : `(' is not expected.
$



Reply via email to