On Nov 6, 12:55 pm, [EMAIL PROTECTED] (Chas. Owens) wrote: > On 11/6/07, Paul Lalli <[EMAIL PROTECTED]> wrote: > snip> > my $filekey = $filekey.$sched_id; > > > This makes no sense. You're declaring a variable on the left and > > assigning it to be a string that results in part from the > > concatenation of that variable on the right. When the right side of > > this is evaluated, $filekey does not exist (and therefore has no > > value). Again, strict would tell you when you make mistakes like > > this. > > snip > > Since it looks like he/she is not using strict, that line could make > sense if there is a global variable named $filekey that has a value. > It is still a bad idea though. > > #!/usr/bin/perl > > use warnings; > > $foo = "Hello"; > my $foo = $foo . " World"; > print "foo is $foo main::foo is $main::foo\n";
<shudder> I didn't think about that. Thanks for pointing it out. And if that's really what's happening.... yeeeesh. Paul Lalli -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/