Markus Treinen wrote:
Peter Scott wrote:
Then don't interpolate it beforehand. (Didn't you get a warning
about "use of uninitialized value"?)
I can't use strict because I simple add a config-file via require and
the variables are simply declared (without my or our). And as it
gives me a lot of warnings, I disabled them, too :-)
That's not a reason to not use strictures and warnings. Just declare
them as package scoped variables in the calling program:
use strict;
use warnings;
our ($configvar1, $configvar2, $configvar3);
require 'myconfig.pl';
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>