perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Martinet <mmrtn...@netscape.net>
Subject Global Variables in ASP
Date Tue, 12 Feb 2002 14:35:48 GMT
Greetings,

Can anyone tell me what is the best method for sharing variables/data 
structures across Active Server Pages?

I have two examples:

1:Declared structures

How do I use a hash defined in one page as a template in another?, i.e.:

[Common.asp]
%fruit = qw( banana, apple, orange )

[AddItem.asp]
<!-- include file ./Common.asp -->

yada, yada

%newFruit = %fruit;  ???

########################################33

2:Initialized variables

[Common.asp]
sub initDate {

    my $tNow, $tHour;

    $tNow = localtime();
    $tHour = substr( $tNow, 11, 2 );

}

[Update.asp]
<!-- include file ./Common.asp -->

use vars $tNow ???

&initDate;

$tNow = what???

#######################################


Thanks again,


MjM



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Mime
View raw message