#!/usr/local/bin/perl use strict; use warnings; my @ARVG = (0,2); my $dir = $ARVG[0] || "/tmp"; print $dir;