Hacker Timesnew | past | comments | ask | show | jobs | submitlogin
Infrequently Asked Questions about Perl (plover.com)
35 points by windsurfer on May 9, 2009 | hide | past | favorite | 6 comments


How do I get tomorrow's date?

Use this function:

    sub tomorrow_date {
        sleep 86_400; 
        return localtime();
    }


"How can I find the creation date of a file?" is my favorite. So evil!


It seems to recreate the file and return the current time, which is the time that the file was recreated. Is this supposed to be a joke, or have I let my Perl knowledge get too rusty?


They're all BOFH-style answers.


Good companion reading is "Not the comp.text.sgml Frequently Asked Questions List":

http://www.flightlab.com/~joe/sgml/faq-not.txt


Not to be read with coffee in one's mouth.




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

Search: