perl - Why do I get "HASH(0x1cbf850)" when I try to print a value from my YAML file? -


i'm trying read yaml file following code:

#!/usr/bin/perl use strict; use warnings; use data::dumper; use mime::base64; use yaml qw(loadfile); $set = loadfile('/apps/config/config.yml'); print $set->{appbaseurl}; 

my config file looks this:

dev: &dev  appbaseurl: "https://app-dev:8443"  appusername: devadmin  apppassword: ffaljfdlsd stage: &stage  appbaseurl: "https://app-stg"  appusername: stageadmin  apppassword: jljfaldskels" 

when print $set->{appbaseurl}; get

hash(0x1cbf850) 

which not expected. why?


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -