#specify interface on commandline or here my $iface = $1 || 'eth0'; #### #specify interface on commandline or here my $iface = shift || 'eth0';