* I fixed a syntax error involving a missing close quote

* I changed the double quotes to single quotes since I'm not
interpolating anything.


Index: perlfaq9.pod
===================================================================
RCS file: /cvs/public/perlfaq/perlfaq9.pod,v
retrieving revision 1.23
diff -u -d -r1.23 perlfaq9.pod
--- perlfaq9.pod  10 Aug 2005 15:54:54 -0000 1.23
+++ perlfaq9.pod  10 Oct 2005 19:00:12 -0000
@@ -366,9 +366,9 @@
 
   use CGI qw(:standard);
 
-  my $total = param( "price" ) + param( "shipping" );
+  my $total = param( 'price' ) + param( 'shipping' );
 
-  my @items = param( "item ); # multiple values, same field name
+  my @items = param( 'item' ); # multiple values, same field name
 
 If you want an object-oriented approach, CGI.pm can do that too.
 
@@ -376,9 +376,9 @@
 
   my $cgi = CGI->new();
 
-  my $total = $cgi->param( "price" ) + $cgi->param( "shipping" );
+  my $total = $cgi->param( 'price' ) + $cgi->param( 'shipping' );
 
-  my @items = $cgi->param( "item" );
+  my @items = $cgi->param( 'item' );
 
 You might also try CGI::Minimal which is a lightweight version
 of the same thing.  Other CGI::* modules on CPAN might work better

-- 
brian d foy, [EMAIL PROTECTED]

Reply via email to