in reply to passing newline in string argument
$ 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."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: passing newline in string argument
by haukex (Archbishop) on Aug 02, 2025 at 08:42 UTC | |
by eyepopslikeamosquito (Archbishop) on Aug 02, 2025 at 10:41 UTC |