Cygwin and Perl

2002-11-12 Thread Patel, SamirX K
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

RE: Compare script fails

2002-12-05 Thread Patel, SamirX K
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

Passing wildcards in filenames

2002-10-05 Thread Patel, SamirX K
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

RE: Off the subject a bit, but I want to know...

2002-10-22 Thread Patel, SamirX K
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-