Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^2: use lib "."

by kcott (Archbishop)
on Aug 12, 2023 at 16:42 UTC ( [id://11153851]=note: print w/replies, xml ) Need Help??

in reply to Re: use lib "."
in thread use lib "."

G'day philipbailey,

"I'm a bit surprised that nobody has so far mentioned FindBin, ..."

++ That's a reasonable comment.

I'm a long-time user of FindBin but have always been somewhat put off by its "KNOWN ISSUES" section.

I recently came across Perl::Critic::Policy::Community::DiscouragedModules. Its FindBin section mentions issues and provides a number of alternatives. My earlier post in this thread, 'Re: use lib "."', shows use of one of those.

— Ken

Replies are listed 'Best First'.
Re^3: use lib "."
by philipbailey (Curate) on Aug 12, 2023 at 16:49 UTC
    Yes, FindBin has some global behaviours that don't work well in persistent environments where it could be use'd multiple times. But for simple cases like production or test scripts, there's no problem.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11153851]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2024-04-15 18:54 GMT
Find Nodes?
    Voting Booth?

    No recent polls found