in reply to Transpose some spaces to commas in a string

It depends on how much variance you can expect in the input fields; if you can be *certain* that you have input of the form

First MI Last userID IDNUMBER MM/DD/YY HH:MM:SS

then it's not that hard.

WARNING: The following is *very* quick n' dirty, and should only be used on highly sanitary input =)

$idstring =~ s/(\w+ \w \w+) (\S+) (\d+) (\S+ \S+)/$1,$2,$3, $4/;
Will do it.

Philosophy can be made out of anything -- or less