Variable empty in try block
  Home FAQ Contact Sign in
perl.beginners.cgi only
 
Advanced search
POPULAR GROUPS

more...

perl.beginners.cgi Profile…
 Up
Variable empty in try block         


Author: Tom Storey
Date: Apr 27, 2008 07:40

Hi,

Im unsure if this is 100%% the correct list, but I am using Perl to form
dynamic web pages (CGI afaik?) so I'll give it a shot.

I have a script which implements a try-catch block. Before entering the
try portion of this block, I am defining a variable and placing some
content into it, which is a hash table.

The problem seems to be that when I go to access this variable inside the
try block, and subsequently any catch blocks, or the otherwise block, the
variable seems to be empty.

Here is a snip of the code I am using:

my $session = new App($query, $thisModule);
Show full article (2.76Kb)
no comments