Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

perl escape string for shell

use String::ShellQuote 'shell_quote';

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

`$cmd`;
 
PREVIOUS NEXT
Tagged: #perl #escape #string #shell
ADD COMMENT
Topic
Name
3+9 =