On Sep 4, Kiarra Parker said:

>#!/usr/bin/perl -T
>use strict; use warnings;
>use CGI;
>use CGI::Carp qw(fatalsToBrowser);

That's all excellent to see!

>my $cgi = new CGI;
>my $parameters = $cgi->Vars();
>get_params($parameters);
>
>sub get_params() {
> my %parameters = %{ $_ };

Two issues.  Your big problem is that you're using $_ instead of $_[0].
The arguments to a function are stored in @_, the first element of which
is $_[0].  The *other* issue is you've defined your function get_params
with a prototype.  Get rid of those parentheses in the function
definition:

  sub get_params {
    ...
  }

-- 
Jeff "japhy" Pinyan         %  How can we ever be the sold short or
RPI Acacia Brother #734     %  the cheated, we who for every service
http://japhy.perlmonk.org/  %  have long ago been overpaid?
http://www.perlmonks.org/   %    -- Meister Eckhart


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to