From: Arthur Axel 'fREW' Schmidt Date: Sun, 14 Feb 2010 08:19:14 +0000 (-0600) Subject: fix order of args X-Git-Tag: v0.00100~35 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9a8549d9252662c1c0d40442fab9584a8e1474e1;p=p5sagit%2FLog-Contextual.git fix order of args --- diff --git a/lib/Log/Contextual.pm b/lib/Log/Contextual.pm index 165096d..6ce2431 100644 --- a/lib/Log/Contextual.pm +++ b/lib/Log/Contextual.pm @@ -22,9 +22,9 @@ sub log_debug (&) { if $log->is_debug; } -sub with_logger { - local $Get_Logger = $_[0]; - $_[1]->() +sub with_logger (&$) { + local $Get_Logger = $_[1]; + $_[0]->(); } 1;