in reply to Re: Will a substitution in an if/else control structure default to $_?
in thread Will a substitution in an if/else control structure default to $_?

How should I go about formatting the output as:

Boss - Firstname Surname Secretary - Name Surname, Mr Jones Smith Medical Doctor - Bob Middlename Hope Position 1 - Asdf Ghjk - Name Lastname, First Last Position 1 - Sally Mally - Joe Smoe, The Who, Will Timberland Position 2 - Paula Simon - Raymonde Maalouf

To those who cannot pick up the subtleness, I need the position always displayed (so I can loop through each row and insert into the database). I was thinking of inserting each new position into an array, then if there is no current position, use $array[-1]; Would this work?

I'm so adjective, I verb nouns!

chomp; # nom nom nom