in reply to Perl Help for using unix command

If you want to capture the standard output from that command then this might work for you: my $change_info = `p4 -o $valu | sed -e "s/<xxxx>/zzz/g;s/<ggg>/ffff/g | p4 change -i`; Notice that the semi-colon is not escaped and that there is not a / after the first g in the first sed pattern.