require is just "pasting" the contents of the file in your script.

to what i read it's better to use includes

The experts will give you a more detailled answer:-)

Etienne

Brian wrote:

> While reading, I think I figured this out, I just want to verify
> with someone first.
>
> #!/usr/bin/perl
>
> ### bunch of code
>
> require "you_need_me.pl"
>
> #### more code
>
> &sub_from_you_need_me.pl
>
> ### END FILE
>
> # This is in the "you_need_me.pl"
>
> ## code
>
> sub sub_from_you_need_me {
>
> #code
>
> }
>
> By using the "require" statement, that should link/load the you_need_me.pl
> file into the main program, kind of like an $INCLUDE in C/C++ ?
>
> Thank You!
>
> Brian
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

S/MIME Cryptographic Signature

Reply via email to