in reply to Re: Passing on "use"s
in thread Passing on "use"s

What irritates me is the duplicity duplication. Wouldn't it be nicer to copy the autopragma part from the script itself instead of repeating it in prints? ;-)

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^3: Passing on "use"s
by cavac (Prior) on Nov 03, 2023 at 07:39 UTC

    Hmm, the script also edits itself during update, using the logic defined in the function. But your solution would work, too.

    PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP