From: Anders S. Mortensen Date: Thu, 28 Jun 2007 13:59:31 +0000 (+0000) Subject: Extract string from parameters in a more flexible way. X-Git-Tag: CPAN-v1.02~54^2~325 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=b91130c982906ad7f61090443edd3cbc5b8db521;p=irspy-moved-to-github.git Extract string from parameters in a more flexible way. --- diff --git a/lib/ZOOM/IRSpy/Utils.pm b/lib/ZOOM/IRSpy/Utils.pm index 75a7bf6..a59442b 100644 --- a/lib/ZOOM/IRSpy/Utils.pm +++ b/lib/ZOOM/IRSpy/Utils.pm @@ -1,4 +1,4 @@ -# $Id: Utils.pm,v 1.34 2007-06-27 11:08:08 mike Exp $ +# $Id: Utils.pm,v 1.35 2007-06-28 13:59:31 sondberg Exp $ package ZOOM::IRSpy::Utils; @@ -399,7 +399,7 @@ sub inheritance_tree { # This function is made available in xslt using the register_function call sub xslt_strcmp { my ($arg1, $arg2) = @_; - return ($arg1->to_literal()) cmp ($arg2->to_literal()); + return "$arg1" cmp "$arg2"; }