As a matter of purpose, you rarely should need `use blib`. If you want to
run script with blib, you can `perl -Mblib scriptname`. If you want to run
your tests using blib, `prove -b t/test.t` (you can also `prove -l
t/test.t` to run using what's in lib without building for pure perl stuff).

The problem with `use blib` is that it allows for unexpected things in @INC
both from a developer and user standpoint. Forgetting to remove it causes
debugging nightmares and runtime problems. As such the usual recommendation
is to only include it from the command line.

Not trying to scold, but rather inform.

Cheers,
Joel

On Thu, Mar 1, 2012 at 1:39 PM, David Mertens <[email protected]>wrote:

> Fabio,
>
> Sorry, the "use blib" helped me run the examples from the local build
> directory. I should remove those, I guess. I'll try to fix that soon and
> upload it in the next couple of days.
>
> David
> On Mar 1, 2012 12:36 PM, "Fabio D&apos;Alfonso" <
> [email protected]> wrote:
>
>> Hi,
>> I was trying the examples in the tarball and I get an error with the use
>> blib directive.
>> I removed and it is working.
>>
>> Is that necessary?
>>
>>
>> Thanks
>> --
>>
>> Fabio D'Alfonso
>> 'Enabling Business Through IT'
>> cell.  +39.348.059.40.22 ***
>> web: www.fabiodalfonso.com <http://www.fabiodalfonso.com/**>
>> email: fabio.dalfonso@fabiodalfonso.**com<[email protected]>
>> <mailto:fabio.dalfonso@**fabiodalfonso.com<[email protected]>>linkedin:
>> www.linkedin.com/in/**fabiodalfonso<http://www.linkedin.com/in/fabiodalfonso><
>> http://it.linkedin.com/in/**fabiodalfonso<http://it.linkedin.com/in/fabiodalfonso>
>> >
>> twitter: 
>> www.twitter.com/#!/fabio_**dalfonso<http://www.twitter.com/#!/fabio_dalfonso><
>> http://www.twitter.com/#%21/**fabio_dalfonso<http://www.twitter.com/#%21/fabio_dalfonso>
>> >
>>
>> fax: +39.06.874.599.581
>> BlackBerry® Wireless Enabled Address.
>>
>>
>>         ** Hidden  numbers are automatically rejected by the phone*
>>
>>
>> ______________________________**_________________
>> Perldl mailing list
>> [email protected]
>> http://mailman.jach.hawaii.**edu/mailman/listinfo/perldl<http://mailman.jach.hawaii.edu/mailman/listinfo/perldl>
>>
>
> _______________________________________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>
>
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to