in reply to Re: Re: Perl says $!what???
in thread Perl says $!what???

The only way I could get the error back from your sub that you specify is when I pass a value in @info that is not initialized. For example (i took out the irrelevent code so use strict; would not complain about $user_name, $file, not being defined in my tests.)

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