Brad Fitzpatrick (brad) wrote,
Brad Fitzpatrick
brad

Evening

Went running, showered, then hung out with rivulet... we did a whole lot of nothing, highlights being pool, pizza, and beer, which in retrospect sounds like more than nothing, so hooray.

More BML mod_perl-ing afterwards. Kickin' some ass.

Interesting:
A little known feature of Perl is that when lexically defined variables go out of scope, any indirect filehandle stored in them is automatically closed. So, in fact, there's really no reason to perform an explicit close() on the filehandles in the two preceding examples unless you want to test the close operation's return value.
I found them stating that humorous, given that Linux's close() always returns true.

Sleep.
Tags: perl, tech
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 3 comments