> -----Original Message----- > From: Rahul Garg [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 27, 2001 8:55 AM > To: [EMAIL PROTECTED]; Perl Beginners > Subject: Passaing arrays or array references as parameters > > > Hello Everybody, > > what i want is to pass an array(reference) as a parameter to > an hyperlink(in CGI script) to another CGI script and access > the elements of array there.........how can i do it....... if > this is not possible then how can i call the subroutine > within the same CGI script thru an hyperlink with > array(reference) as a parameter First of all, use the CGI module. To encode an array in a url, you can just give multiple parameters with the same name: http://mysite.com/cgi-bin/myscript.pl?color=red&color=white&color=blue In myscript.pl, you would retrieve this array as: use CGI; my $q = new CGI; my @color = $q->param('color'); @color would contain ('red', 'white', 'blue') HTH, -- Bob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]