@msg2 =$gsm->messages('SM');
didn't return any messages, which means that $#msg2 is -1.
Update:
And at line 94...
my $dernier_num = $msg2[$#msg2]->sender(); # ^^^^^^
You're trying to access the last element of an empty array!
In reply to Re: Modification of non-creatable array
by FunkyMonk
in thread Modification of non-creatable array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |