in reply to passing an array to a checkbox_group

The problem is that @array=($str) doesn't turn your string into an array.

What you need to do is split $str:

@array = split/,/, $str;

This will give you the array of values you are looking for.

Guy