regex help please



Hi!

It has been a while that I have done any regex. What I am trying to do is
break down a string like the following:

my $_ = " Emp# EmpStatus MStatus BeganEmp
EndedEmp";

I do not know many words will be in $_ or if there will be spaces at the
front of $_ or not.
Along the getting the words, I need to get all the spaces as a word between
the words and at the end as well.

I have started with:

/\s+(\w+)\s+/g;

print "parm: *1 $1*2 $2*3 $3*4 $4*6 $6*7 $7*8
$8*$9*$10*$11*$12*$_*<br>\n" ;

Thanks,

Jerry


I



.