Hi Shravan, If you go to this page and scroll down to the code snippet with Data::Rmap I think this may answer your question.
https://www.linuxcareer.com/perl-as-a-career-option For further detail see https://metacpan.org/pod/Data::Rmap On Sun, Nov 4, 2018 at 4:24 AM Uri Guttman <u...@stemsystems.com> wrote: > 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/ > > > -- Andrew Solomon Perl Trainer, Geekuni http://geekuni.com/ and...@geekuni.com // +44 7931 946 062