For more complicated strings, you can usemy $x = "..multiline\ntext.."; print qx{ echo '$x' | sed 's/^/> /'};
my $x = qq(..multiline\ntext.."'); open my $CMD, '|-', q{sed 's/^/> /'} or die $!; print {$CMD} $x; close $CMD;
In reply to Re: $var | system()
by choroba
in thread $var | system()
by rootcho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |