> George,
>
> Thanks for the quick response.
>
> I was reviewing my code some more and here is what I think
> might be happening.
>
> In my code, the first thing I do is declare my variables.
>
> Then I declare my subroutines'.
>
> It looks like by declaring my subroutines, they are being
> executed. ???
>
> example of my Subroutine declarations:
>
>
>
> # Get the Data Number
> &get_number;
>
> # Get Form Information
> &parse_form;
^^^^^^^^^^^^
Seriously? Why are you using this? It's a zillion years old and deprecated.
use CGI qw(param); instead
& executes a subroutine, If you simply define a routine they will not execute:
sub monkey { return "You are a monkey"; }
That will not ever do anything unless you call it:
print monkey();
print &monkey;
my $monkey = monkey;
Always do -w or use warnings; and use strict;
And use return values instead of setting vars you intend to use in a function
my $var = set_var_variable();
Instead of
&set_var_variable;
sub set_var_variable {
$var = "screwy";
}
HTH
DMuey
>
>
>
> These two subroutines do not take any arguments and assign
> values to global variables... so it appears that merely
> "declaring" them in the beginning of my code is causing them
> to execute. If this is the case, do I have to declare subroutines?
>
>
>
> Thanks,
> ...
> `�.��.���`�.��.���`�-> rodney
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]