Answers for "perl escape string for shell"

0

perl escape string for shell

use String::ShellQuote 'shell_quote';

my $cmd = shell_quote( 'echo', 'This is sample text ending in a slash \\' );

`$cmd`;
Posted by: Guest on September-02-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language