Shawn H. Corey wrote: > Steve Bertrand wrote: >> Steve Bertrand wrote: >> Here is what I came up with. The code does what I want it to do, so >> hopefully it is self-documenting (I get a 'void context' warning on line >> 16, but the code does exactly what I want it to do): > snip >> $letters[--$#letters]; # line 16 > > That's because you did do anything with the value from the array. To > chop off the last element, simply decrease its length by one: > > -- $#letters;
I see, I see. At this point I really don't want to get into the ``perl'' internals, but it must do some form of "wantscalar", much like I'd do a "wantarray" for this type of warning generation. "warnings" are having a different meaning to me now. Before, it was "you are doing something wrong that could be fatal, stupid.", where as now it's "you are still doing something stupid, it may be fatal, but it may mean your interpretation is wrong". The dedication of the people on this list is unbelievable. I must say that I love it here. Thanks to everyone. Steve
smime.p7s
Description: S/MIME Cryptographic Signature
