|
Anyone else going to YAPC this year? I met a few of you last year and had a pretty good time (apart from getting sick after the big dinner.)
|
# ¿ May 3, 2010 18:02 |
|
|
# ¿ May 21, 2024 19:25 |
|
Otto Skorzeny posted:Sartak/Filburt Shellback mentioned he's giving a talk again Bummer, I managed to get my employer to send me again (yay!) I am definitely going to be checking out Sartak's "Nonhierarchical OOP" talk since I still have trouble recognizing good uses for roles.
|
# ¿ May 3, 2010 21:56 |
|
Mithaldu posted:Is there an online version of that somewhere? Or a book or whatever? http://yapc2010.com/yn2010/talk/2634 Not sure that slides exist yet since it is still more than a month off. This looks like a pretty comprehensive collection of links on the topic. Chromatic also wrote a big series of posts about it.
|
# ¿ May 3, 2010 22:27 |
|
Has anyone ever encountered code where a hashref is preceded by a +? I have seen this a few times and have not been able to figure out why it is being done. I assume it forces some sort of context... but I have never been able to find a case where it actually did anything. e.g. code:
leedo fucked around with this message at 23:12 on Mar 8, 2011 |
# ¿ Mar 8, 2011 21:35 |
|
code:
|
# ¿ Apr 5, 2011 03:29 |
|
I've been using Web::Scraper recently too for writing a generic content embedding service, similar to what twitter does for certain links in tweets. Here is an example that scrapes the title and introduction to wikipedia articles.
|
# ¿ May 24, 2011 20:40 |
|
File::HomeDir (does this still pull in a ton of awful Carbon modules) + serializer of choice?
|
# ¿ Jan 24, 2012 05:23 |
|
Anaconda Rifle posted:It's not just an efficiency thing. /"(.+?)",/ and /"([^"]+)",/ can get different results. It's subtle, but extremely important. [^"] matches newlines by default whereas . doesn't? Took me a while of staring to even come up with a guess.
|
# ¿ Oct 20, 2012 04:57 |
|
As another option there is Web::Scrapercode:
|
# ¿ Dec 16, 2012 00:56 |
|
Too many ways to do it, I'm switching to python!
|
# ¿ Dec 16, 2012 21:03 |
|
het posted:There are other benefits, like transparently passing an array by reference so you can change it a la push(), but you can be virtually guaranteed that anyone who uses perl function prototypes constantly has no idea what they're for and shouldn't be using them. One cool use for prototypes is passing blocks in without the need for sub. e.g. code:
|
# ¿ Jan 13, 2013 23:42 |
|
|
# ¿ May 21, 2024 19:25 |
|
I'm a big fan of Web::Scraper
|
# ¿ Apr 12, 2015 03:12 |