Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 271493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T00:10:19+00:00 2026-05-12T00:10:19+00:00

What is the difference between %INC and @INC in Perl?

  • 0

What is the difference between %INC and @INC in Perl?

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T00:10:19+00:00Added an answer on May 12, 2026 at 12:10 am

    The @INC array holds all the file system paths where Perl will be looking for modules when you use or require them.

    After use or require, the %INC hash will contain the loaded modules and where they were loaded from.

    Examples from my laptop:

    @INC:

    '/etc/perl',
    '/usr/local/lib/perl/5.10.0',
    '/usr/local/share/perl/5.10.0',
    '/usr/lib/perl5',
    '/usr/share/perl5',
    '/usr/lib/perl/5.10',
    '/usr/share/perl/5.10',
    '/usr/local/lib/site_perl',
    '.'
    

    and %INC:

    'warnings/register.pm' => '/usr/share/perl/5.10/warnings/register.pm',
    'bytes.pm' => '/usr/share/perl/5.10/bytes.pm',
    'XSLoader.pm' => '/usr/lib/perl/5.10/XSLoader.pm',
    'Carp.pm' => '/usr/share/perl/5.10/Carp.pm',
    'Exporter.pm' => '/usr/share/perl/5.10/Exporter.pm',
    'warnings.pm' => '/usr/share/perl/5.10/warnings.pm',
    'overload.pm' => '/usr/share/perl/5.10/overload.pm',
    'Data/Dumper.pm' => '/usr/lib/perl/5.10/Data/Dumper.pm'
    

    (%INC contains Data::Dumper because I used it to quickly dump those two values).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the difference between const and readonly in C#? When would you use
What is the difference between bool and Boolean types in C#?
What's difference between shadowing and overriding a method in C#?
What's the difference between using a define statement and an enum statement in C/C++
What's the difference between Char.IsDigit() and Char.IsNumber() in C#?
In C, what is the difference between using ++i and i++ , and which
In C, is there a difference between writing struct foo instead of just foo
In c (or maybe c++) , what's the difference between char myarr[16]={0x00}; and char
In C# there are String objects and string objects. What is the difference between
When comparing two strings in c# for equality, what is the difference between InvariantCulture

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.