X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FGetopt%2FLong.pm;h=fe7e12f09b62b03b2dd6fe67051ed8fd373875c3;hb=6ee623d521a149edc6574c512fa951a192cd086a;hp=5b5b495b57fe29925f49d7fa6e1bbe1192f287ee;hpb=20408e3ccf502b6ce4033d8203710405ec9ef8f6;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/Getopt/Long.pm b/lib/Getopt/Long.pm index 5b5b495..fe7e12f 100644 --- a/lib/Getopt/Long.pm +++ b/lib/Getopt/Long.pm @@ -955,6 +955,12 @@ identifier is $opt_ . The linkage specifier can be a reference to a scalar, a reference to an array, a reference to a hash or a reference to a subroutine. +Note that, if your code is running under the recommended C pragma, it may be helpful to declare these package variables +via C perhaps something like this: + + use vars qw/ $opt_size @opt_sizes $opt_bar /; + If a REF SCALAR is supplied, the new value is stored in the referenced variable. If the option occurs more than once, the previous value is overwritten.