I was trying the Perl one liner below but it complains about an *unrecognized switch*. despite this the value is passed into the code. I was trying to avoid a full script file with a getopts and its baggage. perl -s -e "print $oldage;" -oldage=abc Anyone got an idea what will work. Andrew