The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#! /bin/bash

# This file is placed in the public domain.

set -- `getopt x:y:s: $*`
if [ $? != 0 ] ; then
    echo 'Usage: ...'
    exit 2
fi

X=""
Y=""
while [ "$*" ] ; do
    case "$1" in
    -x) X=$2; shift; shift ;;
    -y) Y=$2; shift; shift ;;
    --) shift; break
    esac
done

echo $[$X + $Y]

exit 0