]> git.donarmstrong.com Git - perltidy.git/blobdiff - lib/Perl/Tidy/VerticalAligner/Alignment.pm
New upstream version 20220217
[perltidy.git] / lib / Perl / Tidy / VerticalAligner / Alignment.pm
index 79849c65de0cde8603b3320ab5708e716a372424..78b0b83e423609b2c98a7ace9f58578581da7553 100644 (file)
@@ -10,15 +10,20 @@ use warnings;
 
 { #<<< A non-indenting brace
 
-our $VERSION = '20210717';
+our $VERSION = '20220217';
 
-#    _column_          # the current column number
-#    _saved_column_    # a place for temporary storage
-my $i = 0;
-use constant {
-    _column_       => $i++,
-    _saved_column_ => $i++,
-};
+BEGIN {
+
+    # Indexes for variables in $self.
+    # Do not combine with other BEGIN blocks (c101).
+    #    _column_          # the current column number
+    #    _saved_column_    # a place for temporary storage
+    my $i = 0;
+    use constant {
+        _column_       => $i++,
+        _saved_column_ => $i++,
+    };
+}
 
 sub new {
     my ( $class, $rarg ) = @_;