John W. Krahn wrote: > Abigail wrote: >> On Thu, Jan 24, 2008 at 05:45:18PM -0600, David Nicol wrote: >>> alert me when I give map an arrayref instead of an array >>> >>> $ perl -le 'use warnings; print join "|", map {$_ + 2} [ 1..6 ]' >>> 268504834 >>> >>> >>> this happened to me today, as a function was returning an arrayref and >>> I forgot to wrap it in @{...} before feeding it to map. >> >> >> You'd like to see that Schwartzian Transfers start to warn? > > What's a "Schwartzian Transfer"? I've never heard of that before. Probably a typo, and the Schwartzian Transform is meant instead: http://en.wikipedia.org/wiki/Schwartzian_transform MoritzThread Previous | Thread Next