my @fields = split(/;/); my $obj = SomeClass->new(this => "$fields[0]", that => "$fields[1]", the_other => "$fields[2]", );