in reply to what is the variable type of $data = {
++ To AnonyMonk, $data is a reference to a hash, that itself contains hashrefs (eg the value at a10 is a hashref). One way to test for that is to use ref, that will return 'HASH' in this case, or Scalar::Util's reftype, that is guarranted to always return 'HASH' even if the reference is blessed (turned into an object).
So you can check that ref $data eq 'HASH'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: what is the variable type of $data = {
by jimyokl (Novice) on Jun 20, 2019 at 12:21 UTC |