in reply to Issue with multiple options for a Getopt::Long argument
\(our @option_array)
The COPY receives the values, not the original @option_array.
(Update : See ikegami's correction below.)
Just use :
Here is a test case .. for some reason,the copy will not print unless it is assigned to something.\@option_array
>perl -E "my @x; say qq|Orig=|,\@x; say qq|Copy:|,$_=\(@x)" Orig=ARRAY(0xdb84d8) Copy:SCALAR(0xed8c78)
Is a computer language with goto's totally Wirth-less?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Issue with multiple options for a Getopt::Long argument
by ikegami (Patriarch) on Jan 22, 2018 at 23:06 UTC | |
by Anonymous Monk on Jan 24, 2018 at 17:39 UTC |