$ perl -e 'use Getopt::Long;GetOptions( "string=s" => \my($string));ev +al qq|print("string = $string\n")|' - -string 'foo\nbar' string = foo bar
"If it happens once, it's a bug. If it happens twice, it's a feature. If it happens more than twice, it's a design philosophy."
In reply to Re: passing newline in string argument
by NetWallah
in thread passing newline in string argument
by Special_K
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |