Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Variable value is not reflecting

by Divakar (Sexton)
on Nov 27, 2012 at 07:03 UTC ( #1005801=perlquestion: print w/replies, xml ) Need Help??
Divakar has asked for the wisdom of the Perl Monks concerning the following question:

Hi Folks,

any idea why the variable "$config->{cygwin_ps}" is not reflecting in the variable "$cmd".

below is my perl debugging snippet

main::kill_all_test_processes(j:\dkanagar_ostore_7.4.sol2c5.picopt\vob +s_ostore\o sci\scripts\build_test\nt\ 762: my $cmd='$config->{cygwin_ps} -eafW | grep -i ' . $_ . + ' | grep -i ' . $config->{build_name} . ' | awk \'{print$2}\'';
DB<2> x $config->{cygwin_ps} 0 'C:\\cygwin\\bin\\ps'
DB<3> s main::kill_all_test_processes(j:\dkanagar_ostore_7.4.sol2c5.picopt\vob +s_ostore\o sci\scripts\build_test\nt\ 764: system_log("$cmd | xargs $cygwin_kill -f -9");
DB<3> x $cmd 0 '$config->{cygwin_ps} -eafW | grep -i osserver | grep -i dkanagar_o +store_7.4_ bld_new_1 | awk \'{print$2}\''

Thanks & Regards


Replies are listed 'Best First'.
Re: Variable value is not reflecting
by aitap (Deacon) on Nov 27, 2012 at 07:25 UTC