summaryrefslogtreecommitdiff
path: root/pod/perldelta.pod
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2022-11-25 20:10:05 +0100
committerYves Orton <demerphq@gmail.com>2022-12-09 18:34:58 +0100
commit10ba1aff86e2ef2d5a2e1a26910c8cc1575bde86 (patch)
tree644aff28bff24e72a81e6bbad4d0c3094d6bf081 /pod/perldelta.pod
parent901d80aa640b7a4bacdba6355b48343f30148c0b (diff)
downloadperl-10ba1aff86e2ef2d5a2e1a26910c8cc1575bde86.tar.gz
pp_ctl.c - support $INC in require_file @INC hook
$INC is localized to be the C level index of the loop over the @INC array. At the end of the hook its value is assigned back to the C level loop iterator (inc_idx). This allows a hook to control where in the @INC array the loop should continue, for instance -1 represents "reprocess from the beginning" (and as a convenience so does undef). This can be useful if the @INC array is modified by a hook. Normally we would just "continue along", but this may or may not be the right thing to do, so we let the user decide.
Diffstat (limited to 'pod/perldelta.pod')
0 files changed, 0 insertions, 0 deletions