[DFW.pm] Homework for the list, and for Oct 08 meeting

Tommy Butler homebase at internetalias.net
Thu Sep 11 12:08:27 PDT 2014


You just scraped something from the internet and you put it in an eval. 

http://goo.gl/Krnk46

You're my hero =)

--Tommy Butler

On Sep 11, 2014, John Dexter <john.dexter at psydefect.com> wrote:
>How's this for TIMTOWTDI? WWW::Mechanize::Treebuilder throws warnings
>for a
>depracted module, but it works on my machine...
>
>use v5.20;
>use WWW::Mechanize;
>use WWW::Mechanize::TreeBuilder;
>
>my $mech = WWW::Mechanize->new;
>WWW::Mechanize::TreeBuilder->meta->apply($mech);
>
>$mech->get( 'http://rosettacode.org/wiki/FizzBuzz' );
>
>my @code_blocks = $mech->look_down('class', 'perl highlighted_source');
>
>say $code_blocks[1]->as_text();
>eval($code_blocks[1]->as_text());
>
>
>
>John Dexter
>
>
>On Thu, Sep 11, 2014 at 1:44 PM, Jack Lupton <jacklupton at gmail.com>
>wrote:
>
>> That link for rosetta code is misspelled. It should be
>>
>> http://rosettacode.org/wiki/FizzBuzz
>>
>> DFW.pm is great. I'm glad I joined though I live in Austin. :)
>>
>> On Thu, Sep 11, 2014 at 11:42 AM, John Fields <wigthft at gmail.com>
>wrote:
>>
>>> Firstly,  I want to thank John Dexter for his Docker presentation,
>>> showing how to encapsulate a Mojolicious Web server and application
>for
>>> easy deployment. He got what all presenters get, a free dinner and
>that
>>> warm afterglow from making the world a better place (with more Perl
>in
>>> it).  :)
>>>
>>> I challenged the attendees last night to do the FizzBuzz program. 
>We
>>> even had one programmer in attendance that had been asked to do it
>on a job
>>> interview the previous day!  We were one day late for him, but
>hopefully
>>> not for you..
>>>
>>> Http://rosettecode.org/wiki/FizzBuzz
>>>
>>> Don't cheat.. Yourself.  Do it from scratch before looking at
>other's
>>> solutions.  We will pick 2 more, with increasing difficulty with one
>per
>>> week.  Also new member Andy Sohn will offer a short challenge and
>>> demonstrate answers live at the next Mongers.
>>>
>>> So send in your code, and be as creative as you can!  TIMTOWTDI is a
>>> strength after all.  :)
>>>
>>> Cheers,
>>> John and Tommy
>>>
>>> _______________________________________________
>>> Dfw-pm mailing list
>>> Dfw-pm at pm.org
>>> http://mail.pm.org/mailman/listinfo/dfw-pm
>>>
>>>
>>
>> _______________________________________________
>> Dfw-pm mailing list
>> Dfw-pm at pm.org
>> http://mail.pm.org/mailman/listinfo/dfw-pm
>>
>>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Dfw-pm mailing list
>Dfw-pm at pm.org
>http://mail.pm.org/mailman/listinfo/dfw-pm

-- Sent with K-@ Mail - the evolution of emailing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/dfw-pm/attachments/20140911/d2ec5492/attachment.html>


More information about the Dfw-pm mailing list