Hi everyone, I am new to perl and here is my problem. I have two files. First one is perl script which is reading a text file and parsing some important values and putting into an array for future use. Second file is skill.il which is a Cadence framework file that do some random stuff, I need values from perl script and want to use those values in my skill.il. So I was doing this. I was trying to create a new file(skill.il) and printing out all the lines and commands into this file.
For an example I need these lines in my new skill.il file:
libName = "cmos28shp" ; device library name
tech_lib = "cmos28shp"
techFileID = techOpenTechFile( "cmos28shp" "tech.db" "r")
lib = ddGetObj(libName) ;; Verify the library exista
if(lib == nil then
fprintf(stderr "ERROR: Invalid library. %L .\n" libName)
So I was doing this in perl:
my $outfile = "skillfile.il";
open FH, ">> $outfile";
print FH "libName = "cmos28shp"\n";
print FH 'tech_lib = "cmos28shp"';
I am not sure if it's a right way to generate this file, I am also getting errors like these :
Bareword found where operator expected at testfile.pl line 12, near ""
+libName = "cmos28shp"
(Missing operator before cmos28shp?)
String found where operator expected at testfile.pl line 12, near "cmo
syntax error at testfile.pl line 12, near ""libName = "cmos28shp"
BEGIN not safe after errors--compilation aborted at testfile.pl line 1
So I hope if you can show me some direction and suggest me how can I fix this.