ysh -r Welcome to the YAML Test Shell. Type ':help' for more information. ysh > $a = { type => 'int' }; --- #YAML:1.0 type: int ysh > $b = \$a->{type}; --- #YAML:1.0 !perl/ref: =: int ysh > [$b,$a] --- #YAML:1.0 - !perl/ref: =: int - type: !perl/ref: =: int ysh > $$b={hi=>'there'} --- #YAML:1.0 hi: there ysh > [$b,$a] --- #YAML:1.0 - !perl/ref: =: &1 hi: there - type: *1