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 ha
Could there be extra, non-visible characters attached to the subject coming
back? You might want to try using a regular expression to do the
comparison. It'll give you more control to pass or ignore stuff.
Something the following will ignore extra leading or trailing characters,
and ignore case
If I want to run a script on any file with a .vhd extension in the
directory, how do I pass *.vhd to the perl script?
Easy one-line example (Note, I'm running on Windows): Say I want to find the
pattern "COMPONENT" in any file with a .vhd extension:
perl -lane "if (/COMPONENT/) { printf \"$AR
I've been thinking of jumping to Cygwin for a while. Does anyone know how
it interacts with existing installations of ActivePerl and other stuff (vim,
gawk)?
Does it replace them with its own version, or does it figure out that they
already exist on your system?
Samir
-Original Message-