>>>>> "DH" == Dave Hodgkinson <davehodg at gmail.com> writes:
DH> On 30 May 2011, at 22:17, Uri Guttman wrote:
>>
DH> No. Real people want to solve real world problems in a simple,
DH> maintainable way, not wave around a canapé sized penis.
>>
>> you have a strange way of measuring genitals. real world code is also
>> concise and fast and usable.
DH> And MAINTAINABLE.
DH> Not everyone speaks line noise.
if you think that is line noise, then your perl skills need
improving. seriously i have taught the slurp line to total beginners and
they get it afterwards. this is for learn.perl.org, not golf.
my %conf = read_file( $file_name ) =~ /^(\w+)=(.*)$/mg ;
that is an assigment to hash, scalar context call on read_file and a
regex getting out key=val lines. all stuff newbies need to know and must
learn. it happens to use them all in one basic line. it is all a very
teachable thing to anyone who knows what a hash, sub call and regex
are. i don't expect newbies to know how to read that line but i do
expect them to able to learn from it. that is what proper training is
about. not feeding pablum to kiddies.
uri
--
Uri Guttman ------ uri at stemsystems.com -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------