Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sasajib/9a0b2a45b182d7a6f96f9fcdca790613 to your computer and use it in GitHub Desktop.
Save sasajib/9a0b2a45b182d7a6f96f9fcdca790613 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