Perl Shell - A Solution

if ( ... ) { ... } else { ... }

We are using this if-else structure to perform different operations based on whether we are dealing with a Unix or a Perl command.