Please tell me if this is the correct program for making attribute codes. In this 
program I need to do like a form with an employee's name, age, position and start 
date. This is the way I wrote it. Please tell me what is missing or incorrect.

#!/usr/bin/perl -w
use strict;
$name_field = 0; $age_field = 1; $position_field = 2; $start_date = 3;
@employee = ("John Doe", 32, "Software Engineer", "10/12/2000");
print "Name: ", $employee[$name_field];

Reply via email to