#!/usr/bin/env perl # ^-- use any perl available use strict; use warnings; my $shinyperl=($^O eq 'linux') ? '/nfs/linux/bin/perl' : '/nfs/aix/bin/perl'; symlink($shinyperl,'/usr/local/bin/my-shiny-perl') or die "Create symlink failed: $!";