Re: code line of the day
Ronald J Kimball <[email protected]> Thu, 7 Sep 2006 10:43:59 -0400
| Newsgroups | gmane.comp.lang.perl.fun |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Sep 07, 2006 at 07:21:07AM -0700, Randal L. Schwartz wrote: > >>>>> "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? > > Uh, it throws a lot of warnings when values(%$tmpls) has non-references? > > What do I win? Why would it throw warnings? ref() returns empty string if the argument isn't a reference. Ronald