in reply to Re: Getopt::Long treating option as an argument
in thread getopt::long treating option as an argument

You can insert this line after GetOptions() to set up the default value if neccessary.
$name ||= 'default_name';