in reply to Get me excited about perl
Show them Perl's greatest asset -- concise solutions to everyday problems.
If you have time, pick some task that will resonate with as many of them as possible and get one or more of them to solve the chosen task in their favoured langugages before the day.
By way of example (because the examples already exist): frequency count the words in a text file.
And then write & run your perl solution in real time:
perl -nle"y/a-zA-Z/ /cs; ++$h{$_} for split }{ print qq[$_:$h{$_}] for + sort keys %h" theFile break:1 brief:1 bring:3 brought:2 buffalo:16 burden:1 but:20 by:16 call:2 called:6 came:2 campaign:1 can:36 cannot:2 capable:1 capitals:1 career:2 cart:1 case:2 ...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Get me excited about perl
by tobyink (Canon) on Sep 19, 2012 at 20:21 UTC | |
by BrowserUk (Patriarch) on Sep 19, 2012 at 20:54 UTC | |
by flexvault (Monsignor) on Sep 25, 2012 at 13:27 UTC | |
by tobyink (Canon) on Sep 25, 2012 at 15:04 UTC | |
by BrowserUk (Patriarch) on Oct 29, 2012 at 20:38 UTC | |
by flexvault (Monsignor) on Sep 25, 2012 at 16:31 UTC |