I don't think it should matter - it's actually closing the current (non-elevated) process and starting the same thing again from the shell with elevated privileges, so it's going to reload @INC the same way anyway.
Look again because that is what it currently isn't doing, @INC is not @ARGV
$ perl -Ishabba -e " use Data::Dump; use Devel::PL_origargv; dd( \@INC
+, \@ARGV , [ Devel::PL_origargv->get ] )" -- ro sham bo
(
[
"D:\\PL_origargv_shoulndtuseinlinedirectly\\_Inline\\lib",
"shabba",
"C:/citrusperl/site/lib/MSWin32-x86-multi-thread",
"C:/citrusperl/site/lib",
"C:/citrusperl/vendor/lib",
"C:/citrusperl/lib",
".",
],
["ro", "sham", "bo"],
[
"C:\\citrusperl\\bin\\perl.exe",
"-Ishabba",
"-e",
" use Data::Dump; use Devel::PL_origargv; dd( \\\@INC, \\\@ARGV ,
+[ Devel::PL_origargv->get ] )",
"--",
"ro",
"sham",
"bo",
],
)
|