Re: code line of the day
Uri Guttman <[email protected]> Thu, 07 Sep 2006 11:47:05 -0400
| Newsgroups | gmane.comp.lang.perl.fun |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "RLS" == Randal L Schwartz <[email protected]> writes: >>>>> "Uri" == Uri Guttman <[email protected]> writes: Uri> @{$self->{templates}}{ keys %{$tmpls} } = Uri> map ref $_ eq 'SCALAR' ? \"${$_}" : \"$_", values %{$tmpls} ; Uri> discuss amongst yourselves. topics include: what does it do? RLS> Uh, it throws a lot of warnings when values(%$tmpls) has RLS> non-references? it will only throw an uninitialized warning if a value is undef. that is a user data error and not my problem. :) if the data is another ref type, it will just stringify that ref and again it is user data error. maybe i will add some checking code in version .02 for those two cases. RLS> What do I win? not much as you sent in an incorrect comment! 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