2009/7/24 Dave Mitchell wrote: > So if I've understood this correctly, given() adds a lexical $_ to the > scope, and there's a bug in List::Util::first in that it doesn't work with > a lexical $_? So not a bug in given/smartmatch? Yes, although I'm not 100% sure that pp_given does exactly the right thing with the pad. List::Util::first needs to assign to the lexical $_ in the pad if there is one. -- The world is independent of my will. -- Wittgenstein, Tractatus Logico-Philosophicus, 6.373Thread Previous | Thread Next