in reply to Re^3: problem with string literal in system()
in thread problem with string literal in system()

Thanks for the suggestions cephas and ikegami. I did the below:
my $testCmd = (split /\|/, $configLine)[1]; my $cmd = eval "qq($testCmd)"; my $activity = "testActivity"; system("$cmd 1>$activity.stdout 2>$activity.stderr");
I noticed that it was giving an UnInitialized variable message when I tried to  print "$cmd\n"; And, it executed the command. Thanks again