code line of the day

[email protected] (Uri Guttman) Thu, 07 Sep 2006 03:29:02 -0400
Newsgroups perl.fwp
Message-ID <[email protected]>
this line of my code grew to its present form which i find amusing. 

	@{$self->{templates}}{ keys %{$tmpls} } =
		map ref $_ eq 'SCALAR' ? \"${$_}" : \"$_", values %{$tmpls} ;

discuss amongst yourselves. topics include: what does it do? wtf am i
doing that? and general esthetics.

that is from my soon to be birthed module Template::Simple. yes, another
template module. but this does have some interesting differences and it
really is simple and yet powerful. i gave a talk at boston.pm and 2
lightning talks at yapc::na and oscon and there was some interest in
it. if you want a work in progress snapshot, i will post the url here.

uri

-- 
Uri Guttman  ------  [email protected]  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org