Subject: | "Modification of non-creatable array value attempted" in certain conditions |
If you call:
my $imap = Net::IMAP::Client->new(...);
$imap->select('INBOX');
$imap->search('ALL');
(without $imap->login), then this error appears:
Modification of non-creatable array value attempted, subscript -1 at
/home/users/radek/rpm/new/Net-IMAP-Client-0.9/blib/lib/Net/IMAP/Client.pm line
728.
The code tries to use this construct:
$ perl -wle 'my $x = []; push @{ $x->[-1] }, 42'
Modification of non-creatable array value attempted, subscript -1 at -e
line 1.
Marking as "unimportant", as this is not a proper way to call it anyway.