ActiveState e-mail server is lagging severely!
Check out the dates on the e-mails below.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Edward G.
Orton
Sent: Thursday, January 17, 2002 5:16 PM
To: [EMAIL PROTECTED]; Perl
Subject: Re: @INC



----- Original Message -----
From: "Mohammed Khatib" <[EMAIL PROTECTED]>
To: "Perl" <[EMAIL PROTECTED]>
Sent: Thursday, January 17, 2002 1:04 AM
Subject: @INC


> Hi Everyone,
>
> I'm writing a program in which I want to add to the @INC array
BEFORE
> anything else in the program. The reason why I want to do this
is because
> one of the modules I want to use is located at:
>
> p:\PERL\TimeBase\Folio\Utilities.pm
>
> This is the code I'm using, but Perl tells me that it still
can't find
> Folio\Utilities.pm. Does anyone know why that isn't working? I
have a
> feeling it's because the "use" functions are processed before
anything else
> (and hence before the "push(@INC...."), but I'm not sure.
> Help!
>
> # add path to @INC
> push(@INC, 'p:\PERL\TimeBase');
>
> # Folio utilities
> use Folio::Utilities qw(
>     remFolTags
>     stdChars
> );
>
> Thanks,
> Mk
>
at the top of the program try:

BEGIN {
    push(@INC, 'p:\PERL\TimeBase');
}

ego
Edward G. Orton, GWN Consultants Inc.
Phone: 613-764-3186, Fax: 613-764-1721
email: [EMAIL PROTECTED]

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to