Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Relative path in test file

by Anonymous Monk
on Jul 07, 2022 at 20:35 UTC ( [id://11145347]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Relative path in test file
in thread Relative path in test file

Whever it makes a difference, $FindBin::RealBin is better than $FindBin::Bin.

why?

Replies are listed 'Best First'.
Re^4: Relative path in test file
by ikegami (Patriarch) on Jul 11, 2022 at 00:57 UTC

    Because $RealBin works in those circumstances, and $Bin doesn't. Worse, $Bin can cause the wrong code to be executed, and this could result if a privilege escalation.

    Those circumstances being the use of a link to the script.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-20 16:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found