Loading ...
Sorry, an error occurred while loading the content.

Application Variable

Expand Messages
  • sangeethvs
    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
    Message 1 of 3 , May 17, 2005
    • 0 Attachment
      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@...
      For additional commands, e-mail: asp-help@...
    • Helmut Zeilinger
      Hi, you might try something like this: ... foreach my $ap_key (sort keys %{$Application}) { print qq ($ap_key = $Application- {$ap_key} ); } ... Helmut ...
      Message 2 of 3 , May 18, 2005
      • 0 Attachment
        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@...
        >For additional commands, e-mail: asp-help@...
        >
        >
        >


        --
        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@...


        ---------------------------------------------------------------------
        To unsubscribe, e-mail: asp-unsubscribe@...
        For additional commands, e-mail: asp-help@...
      • John Drago
        You could use the Data::Dumper module: use Data::Dumper; print ; print Dumper( $Application ); ... From: notify@yahoogroups.com
        Message 3 of 3 , May 18, 2005
        • 0 Attachment
          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@...
          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@...
          For additional commands, e-mail: asp-help@...



          ---------------------------------------------------------------------
          To unsubscribe, e-mail: asp-unsubscribe@...
          For additional commands, e-mail: asp-help@...
        Your message has been successfully submitted and would be delivered to recipients shortly.