Hacker News new | past | comments | ask | show | jobs | submit login

I did the same with Perl in 10 minutes: https://git.io/vzKDs

it was fun I will check it tomorrow when I'm back from the pub




A man from Toronto writing a 10-minute perl module from a pub? This sounds like a Wheat Sheaf sort of affair.


Is there any practical difference between that and just a normal new() function returning a hash based on that json? Does bless change anything?

I mean, for "the same" I'd expect something like:

    ....
    use test
    say test->hello;
    say test->this->could->be->a->bad;


Ok, back from the pub and fixed it you can now use it like this:

use BlessJSON qw(test.json);

say test->hello;

say test->this->could->be->a->bad;

close enough




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: