in reply to Creating a new variable named the contents of another

Is there a reason you are not using a hash for this ?

#Untested.. my %foo = ( IP => "2.3.4.5" ,USER => "Someone" ,PASSWORD => "Bad Idea" , .. etc ... ); my $returned = $foo{$ARGV[0]}; print .. etc ..

    Earth first! (We'll rob the other planets later)