The proper way to open()

Andy Wardley abw at wardley.org
Tue Jan 31 08:51:57 GMT 2012


Greg McCarroll wrote:
> We'd also not have a language that attracts people who like to fly giant kites (Andy W. and a few others) 

/me waves

For the record, the Way I Do It these days is using Badger::Filesystem.

http://badgerpower.com/docs/Badger/Filesystem/File.html

e.g.

    print File('wibble.txt')->text

On the subject of TMTOWTDI, it's interesting (and rather disappointing) to note that I received what can only be described as "hate mail" after I released Badger.  Some people apparently felt that if it didn't use and actively promote Moose then it didn't deserve to exist. One correspondent told me that I was "confusing things for Perl users by giving them too much choice".  I laughed it off on the outside and offered them a full refund of the purchase price, but I cried a little on the inside (only for dramatic effect you understand - no RealTears[tm] were shed). 

A




More information about the london.pm mailing list