Bug#855901: Data::Dumper could allow starting from VAR0 etc.

積丹尼 Dan Jacobson jidanni at jidanni.org
Thu Feb 23 07:17:19 UTC 2017


Package: libperl5.24
Version: 5.24.1-1
Severity: wishlist
File: /usr/lib/i386-linux-gnu/perl/5.24.1/Data/Dumper.pm

We read
       o   $Data::Dumper::Varname  or  $OBJ->Varname([NEWVAL])

	   Contains the prefix to use for tagging variable names in the
	   output. The default is "VAR".

OK, but an additional variable, to control the number the 1, 2.. of
VAR1, VAR2.. would be useful too. E.g., if the user has an array and
he wants to match its indexes and thus have the names start at "VAR0".
Or who knows, he wants to start at VAR5 etc.
-----------------------------------------------------------------
---
Flags:
    category=library
    severity=wishlist
    module=Data::Dumper

(perlbug at perl.org throws away my mail. Hence reporting via Debian.)




More information about the Perl-maintainers mailing list