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
Post a Comment