perlmason

Printing Contents of arguments in Mason


I have a mason file which accepts arguments

<%args>
  $data
</%args>

When I use FLLogError to print $data it prints HASH(0x853e6654).

Is there a way to print the contents of this hash so that I can verify that it is getting the required parameters?


Solution

  • use Data::Dumper;
    FLLogError(Dumper $data);
    

    or if you want all the args:

    use Data::Dumper;
    FLLogError(Dumper \%ARGS);