in reply to Difference between executing and "using" a .pm file

Are you thinking of %INC?

Hope this helps!


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: Difference between executing and "using" a .pm file
by Marshall (Canon) on Mar 30, 2021 at 19:39 UTC
    I believe %INC is unaffected by this execution difference. However Perl is so wonderfully introspective, I just need to ask "who called me?". If I am being executed from the command line, then nobody did!

    Update: I see this post got a -1 vote. If you did that, then why don't tell us all why you did that?