hakim-djz has asked for the wisdom of the Perl Monks concerning the following question:
Hi ALL
I am working with ADS design suite, and I found out it has some perl modules in it that help convert citi files to the data set format .ds that the suite uses. I am trying to use the module but not really getting anywhere as well the syntax is confusing me, if anyone can help explain it for me?
use strict; use warnings; use dKitCircuit; use dKitResults; my $dir = "build-2"; opendir DIR, $dir or die "cannot open dir $dir: $!"; my @file= readdir DIR; closedir DIR; dKitResults->convertCitifile2Dataset('pathToFile'[,'setName']); #the moduleit specifies to use this, but couldn't get it to work, #so tried the below statement #dKitResults->convertCitifile2Dataset('build-2/\$file[1]','x'); #this allows it to compile, but doesn't work either foreach(@file){ print $_,"\n"; #dKitResults->convertCitifile2Dataset($dir."/".$_,"X"); } #output# syntax error at C:\Users\QUB\Desktop\hakim\scripts\convert.pl line 12, + near "'build-2/\$file[1]'[" Execution of C:\Users\QUB\Desktop\hakim\scripts\convert.pl aborted due + to co mpilation errors. Press any key to continue . . .
As well in the .pm it has ($;$) for the subfunction
sub convertCitifile2Dataset($;$) #UPDATE# dKitResults->convertCitifile2Dataset('build-2/wafer_807_T1_ME_build2_d +cbk.cti','choclate'); #WORKS
Also needed to copy certain bin files and .dll files from the ADS bin directory to StrawberryPerl as it required to connect to some server the suite uses. May have been different on Linux?? My First Time using Strawberry
Thanks for comments & help
If it helps any in the future, I searched using the Windows in the start menu for gsl37.dll as it was also looking for this. Right clicked it and opened the file containing and copied everything in it to the C:\Strawberry\bin directory
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What does this mean?
by GotToBTru (Prior) on Jul 08, 2014 at 15:20 UTC | |
by hakim-djz (Novice) on Jul 08, 2014 at 15:47 UTC | |
|
Re: What does this mean?
by perlfan (Parson) on Jul 08, 2014 at 14:28 UTC | |
by AnomalousMonk (Archbishop) on Jul 08, 2014 at 15:14 UTC | |
|
Re: What does this mean?
by AnomalousMonk (Archbishop) on Jul 08, 2014 at 15:24 UTC |