The proper way to open()

Andy Wardley abw at
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.


    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). 


More information about the mailing list