What os that ?

require "auth.conf";
require 5;                         what is 5 and how does it use ?


LVL 1
tanc02Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ozoCommented:
perldoc -f require
    require EXPR
    require Demands some semantics specified by EXPR, or by `$_' if EXPR
            is not supplied. If EXPR is numeric, demands that the
            current version of Perl (`$]' or $PERL_VERSION) be equal
            or greater than EXPR.

            Otherwise, demands that a library file be included if it
            hasn't already been included. The file is included via
            the do-FILE mechanism, which is essentially just a
            variety of `eval()'. Has semantics similar to the
            following subroutine:
0
TYoungCommented:
require 5;

means you have to have PERL version 5 to run that script.

require "auth.conf";

reads in auth.conf as if it were a regular perl file, and you can use variables, subroutines, and etc. in it.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Perl

From novice to tech pro — start learning today.