On Friday 21 July 2006 08:59, Sayed, Irfan (Irfan) wrote: > Hi, > > I am executing following code. > > foreach (@vob_repl_list) > > { > > print $_; > > `$MT chreplica -host puvob02 $_`; > > } > > but I am not getting the value of $_ in the command `$MT chreplica -host > puvob02 $_`; if I print the value of $_ then it's printing fine. > > but in command it's not taking that value. so my execution of command is > failing. > > can u plz help. > > regards > > irfan.
$_ is being interpolated, but if you don't do anything with the returned output (like print it), you won't see any results. If that isn't the case, it's possible that @vob_repl_list is empty. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>