-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Guys,<br/>
<br/>
I have this basic perl script:<br/>
<div style="margin-left: 40px;">#!perl -w<br/>
use strict;<br/>
<br/>
use Env qw(EnvVar1 EnvVar2);<br/>
<br/>
my $EnvVar1=&quot;DefaultValue1&quot; if (&quot;&quot; eq
&quot;$EnvVar1&quot;);<br/>
my $EnvVar2=&quot;DefaultValue2&quot; if (&quot;&quot; eq
&quot;$EnvVar2&quot;);<br/>
my $Var3 = &quot;$EnvVar1 -- $EnvVar2&quot;;<br/>
</div>
<br/>
When I run it, the perl interperter complains about &quot;Use of
uninitialized value in concatenation&quot; on the &quot;Var3&quot; line
(the last line.<br/>
<br/>
Did I mess things up by putting the &quot;my&quot; on the
&quot;EnvVar1&quot; and &quot;EnvVar2&quot; lines -- these variables
should be defined on the &quot;use Env&quot; line, right?<br/>
<br/>
If you were to re-write this whole section, how would you do it?&nbsp;
This is my thought:<br/>
<br/>
<div style="margin-left: 40px;">#!perl -w<br/>
use strict;<br/>
<br/>
use Env qw(EnvVar1 EnvVar2);<br/>
<br/>
my $EnvVar1 = &quot;DefaultValue1&quot; if (! exists ($EnvVar1));<br/>
my $EnvVar2 = &quot;DefaultValue2&quot; if (! exists ($EnvVar2));<br/>
my $Var3 = &quot;$EnvVar1 -- $EnvVar2&quot;;<br/>
</div>
<br/>
Dan<br/>
<br/>
- - - - -<br/>
&quot;Wait for that wisest of all counselors, time.&quot; -- Pericles<br/>
&quot;I do not fear computer, I fear the lack of them.&quot; -- Isaac
Asimov<br/>
GPG fingerprint:6FFD DB94 7B96 0FD8 EADF  2EE0 B2B0 CC47 4FDE 9B68

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDFx/CsrDMR0/em2gRAjnJAKDjWccSSR95T9C/ZPGSNwMCCQiUzwCfc9Lg
TOQ6HWycMlibL+x3LZTBHHs=
=okW6
-----END PGP SIGNATURE-----