in reply to CGI type question involving arrays..

More portable, pah. Why not use CGI.pm?
For example:
#!/usr/bin/perl -w use strict; use CGI; my $query = new CGI; my @params = $query->param; foreach $param(@params) { $values = join '^', $query->param($param); # do what you want with the data here }
Hope this helps;-)

Replies are listed 'Best First'.
(Ovid - don't forget taint checking) RE(2): CGI type question involving arrays..
by Ovid (Cardinal) on Sep 26, 2000 at 21:45 UTC
    You forgot to add the -T switch to turn on taint checking. Since this person is using this data to add to a database, they're probably constructing SQL statements with it. Thus, without taint checking, a savvy cracker can have fun passing values that delete databases, change information they shouldn't, or other nasty things.

    See perlsec for details.

    Cheers,
    Ovid

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

RE: Re: CGI type question involving arrays..
by reyjrar (Hermit) on Sep 26, 2000 at 21:42 UTC
    I was told to "USE THIS CODE OR ELSE" by my manager.. heh..
    thanks for your help :)