in reply to How do i get the variables to actually get in here....
Since this is a homework assignment, you probably can't change the input data (which is what I would normally do - use a separator like ':' to delimit the fields), so the way to go is probably:
- split at blanks (use @a = /([\w-,@]+\s+)/)
- check which fields terminate in ',' - these are the last names of the person and his advisor
- check how many fields are between the person's last name and the advisor's last name and how many after the advisor's last name to find out how many first / middle names were given in each case
Hope this helps you,
pike
|
|---|