Don't ask to ask, just ask | |
PerlMonks |
Re^4: a farewell to chopby particle (Vicar) |
on Sep 11, 2002 at 18:29 UTC ( [id://197026]=note: print w/replies, xml ) | Need Help?? |
\X fixes the utf8 problem, but there's still a problem with this regex...
i believe s/\X\z// will do what you want, although it still won't return the character removed. instead, use substr EXPR,OFFSET,LEN,REPLACEMENT (i.e. substr $_,-1,1,'').
~Particle *accelerates*
In Section
Meditations
|
|