For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > July 2005 > Re: Problem accessing fully qualified global var from another









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Problem accessing fully qualified global var from another
Sven-Thorsten Fahrbach

2005-07-30, 5:00 pm

Okay, I was able to figure it out. The variable is, at the time of the assignment, not yet initialized. I've pasted the assignment into the init() sub and it's working fine now.

SveTho

p.s.: this is an example for why you shouldn't turn off warnings by default. Had I left out the

no warnings qw/ uninitialized /;

perl would have told me at once that it's not initialized.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com