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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to