in reply to Populating an array reference in a hash with with a regex

use CGI qw/:standard/; my %data = ( salesman => [param('salesman')] );

CGI::param() returns a list when in list context.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.