in reply to Strange Problems wit Class::DBI
Is your package in a separate file? If so, then this is expected behavior, as our is lexically scoped, and the lexical scope of the main script ends at the end of the file.
Personally, if I really wanted to have a global variable, I would just use the fully-qualified notation instead: $::id_t_client_types (or $main::id_t_client_types, which might better hint at what's going on).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Strange Problems wit Class::DBI
by redpantyhose (Initiate) on Nov 10, 2008 at 10:24 UTC |