Example of using variable references: $ret = GetOptions ('foo=s', \$foo, 'bar=i', 'ar=s', \@ar); With command line options ``-foo blech -bar 24 -ar xx -ar yy'' this will result in: $foo = 'blech' $opt_bar = 24 @ar = ('xx','yy')