Re: Problem with scope in CGI script

2007-11-06 Thread John W . Krahn
On Tuesday 06 November 2007 00:24, Gunnar Hjalmarsson wrote: > John W . Krahn wrote: > > On Sunday 04 November 2007 18:06, Mike Martin wrote: > >> sub run_cmd { return print > > > > print() returns either true or false. Why are you returning this > > value from your sub? > > > >> span( { -class =>

Re: Problem with scope in CGI script

2007-11-06 Thread Gunnar Hjalmarsson
John W . Krahn wrote: On Sunday 04 November 2007 18:06, Mike Martin wrote: sub run_cmd { return print print() returns either true or false. Why are you returning this value from your sub? span( { -class => 'place_cmd' }, submit( -name => 'action', -value => shift ) ), p }; ... run_cmd(

Re: Problem with scope in CGI script

2007-11-05 Thread John W . Krahn
On Sunday 04 November 2007 18:06, Mike Martin wrote: > > Hi Hello, > I have the following script > > #!/usr/bin/perl -w > use CGI qw/:standard/; > use CGI::Carp qw(fatalsToBrowser warningsToBrowser); > use strict; > use File::Basename; > > our $list; > sub run_cmd { return print print() returns

Re: Problem with scope in CGI script

2007-11-05 Thread Tom Phoenix
On 11/4/07, Mike Martin <[EMAIL PROTECTED]> wrote: > Hi I have the following script > our $list; > sub print1 { > > my %list; Okay, that's two variables named 'list'. > print header(); > print start_html('Man Pages'); > my $page=param('man'); > my @array=`find /usr/share/man -name $page*`; > m