On 10/27/18 6:27 AM, Shravan Uppin wrote:
Hi do anyone know how to substitute for string in complex hashes
i am not sure what you mean with that question. a string substition (the s/// op) can be done on any scalar. if you can access the scalar in a complex hash, you can do an s/// on it. or get a reference to the location in the hash tree and do the s/// on a dereferenced scalar. other than that, your question would be how to get to a value in a complex hash. maybe you mean doing s/// on all (or some) values in a hash tree. that is a different problem and you should state if that is what you want to do.
half of the solution to any problem is asking the right questions. so think about your needs and ask a more focused question.
uri -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/