Down Safe

djberg96 on 2002-03-19T18:57:02

I played with the Safe.pm module today and figured out how to safely eval both named and anonymous subs. It took me a bit to figure out how to do anonymous subs (not just plain strings), but I got it working. I was worried for a minute I would have to manually parse 'sub{}' out of any incoming strings - blech.

Well, I guess I consider that a successful test of stage one for my future revision of Penguin (which I am tentatively calling Oyster). Stage two has hit a snag, as I was unsuccessful in my attempt to install Crypt::OpenPGP. Might be a Solaris issue. I'll have to wait on word from Ben.

In other news, I read that some were actually considering changing the format specifier from '%' to something else to avoid confusion with hashes in Perl 6. For the love of God, don't do it!!! It's that sort of annoying poo that can drive people away from a language, or at least irritate them to no end.