Hi All,
I just installed Cygwin, and I have ActivePerl installed previously (and
still).
When I try running a perl script from the DOS command window, it works.
When I try to run it from Cygwin, I get the error:
inst.pl: 13: Syntax error: "{" unexpected (expecting "then")
I'm guessing Cygwin has its own version if perl, and its old. How do I get
uninstall Cygwin Perl and get it to point to ActivePerl?
Thanks!
Samir
Here's the snippet from around line 13:
Line 1 :
############################################################################
###
Line 2 : # Instantiation program
Line 3 : #
Line 4 : # usage: inst.pl <infile>
Line 5 : # example: inst.pl arden.vhdl
Line 6 : #
Line 7 : #
Line 8 : # This script parses VHDL or Verilog files and writes
Line 9 : # out module instantiation and port mapping code in Verilog.
Line 10: #
Line 11:
############################################################################
###
Line 12:
Line 13: if ($#ARGV<0) {
Line 14: print "\n";
Line 15: print "This script parses VHDL or Verilog files and writes\n";
Line 16: print "out module instantiation and port mapping code in
Verilog.\n";
Line 17: print "\n";
Line 18: print "usage: inst.pl <infile> \n";
Line 19: print "example: inst.pl test.vhdl\n";
Line 20: print "\n";
Line 21: print "Number of Arguments read: $#ARGV\n";
Line 22: exit 0
Line 23: }
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]