in reply to Re: Updates problem with single quote
in thread Updates problem with single quote

Finally!!!! it was the space which was creating problem thanks guys below trick is helpful,
p "==$string_variable=="
now I change my ch_dir function to this,
my ($cmd,$patch,$step) = @_; $cmd =~ s/\s*cd\s* //; chdir($cmd) || die
Cheers!!!