in reply to Re: Re: Perl says $!what???
in thread Perl says $!what???
1. This code works
my $house = 1; my $car = 1; my @passed = ($house, $car); my ($t1, $t2) = good(@passed);
2. Whereas this code does not (well it works, but diagnositics, and warnings both warn you of a possible error.)
my $house = 1; my $car; my @passed = ($house, $car); my ($t1, $t2) = good(@passed);
So the conclusion is that somewhere you have a value being passed into the array being passed into your sub, without a value. I hope this makes sense, if not I can try to explain further.
update: I forgot to mention that the following does not complain either:
3.
my $house = 1; my $car; my @passed; my ($t1, $t2) = good(@passed);
-enlil
|
|---|