in reply to
Forcing array context
You can do it with substr() as
jarich
indicates (although the last character is length($string) - 1). If you want to use list syntax with it, you can use Tie. See
208875
.
None of this has anything to do with "list context", though.
Comment on
Re: Forcing array context
In Section
Seekers of Perl Wisdom