While we’re at it, turn on strict and warnings.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
* Fix DEB_CHECK_FILES and DEB_TRANSFORM_FILES with non-conffiles in
Multi-Arch: same packages.
+ * Fix encode script to work with Perl 5.12. While we’re at it, turn on
+ strict and warnings.
- -- Anders Kaseorg <andersk@mit.edu> Sun, 21 Aug 2011 22:41:41 -0400
+ -- Anders Kaseorg <andersk@mit.edu> Tue, 25 Oct 2011 19:27:00 -0400
config-package-dev (4.12) unstable; urgency=low
#!/usr/bin/perl
+
+use strict;
+use warnings;
+
$ARGV[0] =~ s/\+([^+]*)\+/unparse($1)/eg;
print $ARGV[0];
sub unparse {
# This encoding is intended to be human-readable, so that users can
# determine the cause of conflicts between different configuration
# packages.
+
+use strict;
+use warnings;
$ARGV[0] =~ s,^/,,;
-split('', $ARGV[0]);
-foreach (@_){
+foreach (split('', $ARGV[0])) {
if (m/[a-z0-9.-]/) {
print "$_";
} elsif (m/[A-Z]/) {