Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Windows set PERL5LIB environment variableby VinsWorldcom (Prior) |
on May 06, 2021 at 10:35 UTC ( [id://11132132]=note: print w/replies, xml ) | Need Help?? |
Windows doesn't have export so I'm not sure what you're doing. Are you using the perl with Git for Windows and Git bash? I use Strawberry Perl and set my PERL5LIB in Control Panel => System => Advanced System Settings => Advanced => Environment Variables => User Variables. It is:
If you want to set it only temporarily in a PowerShell (no one uses CMD.exe anymore these days):
I think you may be messing up syntax. Windows uses colon (:) for drive letters and semicolon (;) for path separators. Bash uses colon (:) for path separators and uses semicolon (;) as command separators. Seems you're trying to use Windows syntax in Bash paths. To set PERL5LIB it in Git bash, don't worry about the drive:
or if you really need the drive letter, I think the following syntax works:
Cheers.
In Section
Seekers of Perl Wisdom
|
|