use JSON; open FH, "< myfile.json" or die $!; my $contents = <FH>; close FH; my $results = decode_json($contents);
My problem is that I wish to include the defining of the $results value in the class constructor, or possibly as a class method.Unfortunately I can't work out how to do this within Moose.
Can anyone help me?
In reply to Moose constructor help by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |