Skip to content

Instantly share code, notes, and snippets.

@Axxon
Created February 19, 2021 21:01
Show Gist options
  • Save Axxon/c150339eba06dd5cd8ec8b9e2904e40e to your computer and use it in GitHub Desktop.
Save Axxon/c150339eba06dd5cd8ec8b9e2904e40e to your computer and use it in GitHub Desktop.
Fix append_path message (add fn in /etc/profile.d/perlbin.sh)
append_path()
{
case ":$PATH:" in
*:"$1":*)
;;
*)
PATH="${PATH:+$PATH:}$1"
esac
}
[ -d /usr/bin/site_perl ] && append_path '/usr/bin/site_perl'
[ -d /usr/bin/vendor_perl ] && append_path '/usr/bin/vendor_perl'
[ -d /usr/bin/core_perl ] && append_path '/usr/bin/core_perl'
export PATH
# If you have modules in non-standard directories you can add them here.
#export PERLLIB=dir1:dir2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment