in reply to First char out of a string & surprises with errors on chop reverse $string (that doesn't work!)
For those of you who may not know what merlyn means by a lvalue...look at it this way. chop removes the last character from the scalar you pass it modifying the scalar. Since you passed it the return value from reverse, it didn't have a 'real' scalar to chop, thus the error.
/\/\averick
perl -l -e "eval pack('h*','072796e6470272f2c5f2c5166756279636b672');"
|
|---|