Perl: the Markov chain saw | |
PerlMonks |
Re: First char out of a string & surprises with errors on chop reverse $string (that doesn't work!)by merlyn (Sage) |
on Dec 26, 2001 at 21:43 UTC ( [id://134431]=note: print w/replies, xml ) | Need Help?? |
chop() wants an lvalue (like a variable), because it modifies its argument.
The result of reverse is not an lvalue, so you lose.
-- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|