Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: First char out of a string & surprises with errors on chop reverse $string (that doesn't work!)

by maverick (Curate)
on Dec 26, 2001 at 21:55 UTC ( [id://134437]=note: print w/replies, xml ) Need Help??


in reply to First char out of a string & surprises with errors on chop reverse $string (that doesn't work!)

merlyn is quite right...had I not been in the shower, I could have saved you the post :)

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');"

  • Comment on Re: First char out of a string & surprises with errors on chop reverse $string (that doesn't work!)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://134437]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-24 16:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found