viji_05 has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to run this simulation command using perl but it's getting run even not showing any error also.Is their any wrong with syntex ?The thing is the same command is working when used to give in aldec tool.

=> system ("acdb merge -o merge.acdb -path -f ./@acdb_file_list -ve +rbose");

Replies are listed 'Best First'.
Re: Running aldec simulation command using per system() function !!!
by Corion (Patriarch) on Oct 10, 2019 at 07:13 UTC

    If you let Perl, it will tell you about the error it encounters:

    my $cmd = "acdb merge -o merge.acdb -path -f ./@acdb_file_list -verbos +e"; system ($cmd) == 0 or die "Couldn't launch [$cmd]: $! / $?";
Re: Running aldec simulation command using per system() function !!!
by haukex (Archbishop) on Oct 10, 2019 at 18:36 UTC

    Here's my obligatory link to my node where I discuss running external commands using various modules. IPC::System::Simple is a drop-in replacement for Perl's system with much better error reporting, that way you can get some error messages to find out what might be going wrong to start with. Although I think hippo is probably right about the interpolation of @acdb_file_list. Also, always Use strict and warnings for more helpful messages from Perl.

Re: Running aldec simulation command using system() function
by hippo (Archbishop) on Oct 10, 2019 at 09:59 UTC

    Are you intending @acdb_file_list to be interpolated by perl? If not, use single quotes instead.