Mailing List Archive

Application Variable
Hi,

How do we print all the application variable names and its values? I
tried the following but it didn't work.

my $item;
foreach $item ($Application->Contents) {
print "$item<br>";
}

Any suggestions? Thanks in advance.

Sangeeth



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org
Re: Application Variable [ In reply to ]
Hi,

you might try something like this:

...
foreach my $ap_key (sort keys %{$Application}) {
print qq ($ap_key = $Application->{$ap_key}<br>);
}
...

Helmut

>How do we print all the application variable names and its values? I
>tried the following but it didn't work.
>
>my $item;
>foreach $item ($Application->Contents) {
> print "$item<br>";
>}
>
>Any suggestions? Thanks in advance.
>
>Sangeeth
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
>For additional commands, e-mail: asp-help@perl.apache.org
>
>
>


--
HZ.labs
Dr. Helmut Zeilinger
Wiesengrund 2
D-86 684 Holzheim
Tel 08276/58767
Fax. 08276/ยด58787
Mobil 0160 91 55 61 68
Internet http://www.hzlabs.de
Mail hz@hzlabs.de


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org
RE: Application Variable [ In reply to ]
You could use the Data::Dumper module:

use Data::Dumper;
print "<plaintext>";
print Dumper( $Application );



-----Original Message-----
From: notify@yahoogroups.com [mailto:notify@yahoogroups.com] On Behalf
Of sangeethvs
Sent: Tuesday, May 17, 2005 3:36 AM
To: asp@perl.apache.org
Subject: Application Variable

Hi,

How do we print all the application variable names and its values? I
tried the following but it didn't work.

my $item;
foreach $item ($Application->Contents) {
print "$item<br>";
}

Any suggestions? Thanks in advance.

Sangeeth



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



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