You didn't actually try that, did you? :)
It won't work, and that's because chop() tries to modify its argument, i.e. it wants an lvalue. The return value of chop() returns the (last) removed value, so even if chop() could chop the reverse()-expression $string would hold the first char of itself, and the outer reverse would be useless.
ihbIn reply to Re: Re: removing first char of string
by ihb
in thread removing first char of string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |