From: Mike Taylor Date: Wed, 25 Oct 2006 17:16:14 +0000 (+0000) Subject: Nicer rendering X-Git-Tag: CPAN-v1.02~909 X-Git-Url: http://jsfdemo.indexdata.com/?a=commitdiff_plain;h=2fe5adf17a223393e231b757b953b0e1923d3d0e;p=irspy-moved-to-github.git Nicer rendering --- diff --git a/lib/ZOOM/IRSpy/Task/Retrieve.pm b/lib/ZOOM/IRSpy/Task/Retrieve.pm index 0583386..e0ed1f4 100644 --- a/lib/ZOOM/IRSpy/Task/Retrieve.pm +++ b/lib/ZOOM/IRSpy/Task/Retrieve.pm @@ -1,4 +1,4 @@ -# $Id: Retrieve.pm,v 1.1 2006-10-25 15:45:29 mike Exp $ +# $Id: Retrieve.pm,v 1.2 2006-10-25 17:16:14 mike Exp $ package ZOOM::IRSpy::Task::Retrieve; @@ -51,7 +51,9 @@ sub run { sub render { my $this = shift(); - return ref($this) . "(" . $this->{rs}. ", " . $this->{index0} . ")"; + my $syntax = $this->{options}->{preferredRecordSyntax}; + $syntax = defined $syntax ? "'$syntax'" : "undef"; + return ref($this) . "(" . $this->{index0} . ", $syntax)"; } use overload '""' => \&render;