in reply to Re^3: Modification of a read-only value attempted
in thread Modification of a read-only value attempted

no autovivification; is your friend

Seeking work! You can reach me at ikegami@adaelis.com

Replies are listed 'Best First'.
Re^5: Modification of a read-only value attempted
by LanX (Saint) on Feb 01, 2021 at 21:17 UTC

      There are entries that $response$i$j{creden} don't have following {uName}; hence i am getting the error. I would like to check if $response$i$j{creden} key having the value {uName}; or not to verify a check before assign the value to a new variable. Any help is appriciated.

        exists is your friend.

        you need to test for existence of both {creden} and {creden}{uName} in an if condition

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery