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
    Thank's a lot Sorry, I was in a state of mental derangement in other parts of my Script I had allready used '$::' aka '$main::' before but later on I forgot about it and I wasted 2 days with googling for a solution. ;.) Hollydays might be a good solution.