I am converting a TCL script to perl.
I have tried it using the system command and back tics. I am executing the perl script in primetime in the following way, exec script.pl. The script contains many commands including the following command.
my $val = `sizeof_collection [get_pins -quiet -filter "is_hierarchical == true"]`;
The shell throws an error like sizeof_collection: command not found.
shto run a command.shdoes not understand tcl...sizeof_collectionis a PrimeTime command and cannot be executed directly from the shell (via perl). You need to create a TCL script to run that command in primetime. For example from Perl you can call primetime like this:my $val = `primetime -file temp_script.tcl`;