From: Matt S Trout Date: Fri, 15 Nov 2013 19:02:51 +0000 (+0000) Subject: provide $_ in scan_dq_nodes X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=32b560097fb9263d9c0d58d5745567168193c9aa;p=dbsrgits%2FData-Query.git provide $_ in scan_dq_nodes --- diff --git a/lib/Data/Query/ExprHelpers.pm b/lib/Data/Query/ExprHelpers.pm index a48f687..d95fc85 100644 --- a/lib/Data/Query/ExprHelpers.pm +++ b/lib/Data/Query/ExprHelpers.pm @@ -132,6 +132,7 @@ sub scan_dq_nodes { my ($cb_map, @queue) = @_; while (my $node = shift @queue) { if ($node->{type} and my $cb = $cb_map->{$node->{type}}) { + local $_ = $node; $cb->($node); } push @queue,