Commits

Anonymous committed 2743ea1

Got rid of tr///d warning

Comments (0)

Files changed (2)

Graph-Easy/CHANGES

   * Fix "GraphML: end tag of nodes before definition of their attributes"
     - https://rt.cpan.org/Public/Bug/Display.html?id=46992
     - Thanks to a patch by ironcamel ( https://github.com/ironcamel )
+  * Got rid of a warning in recent Perls for doing tr/\t/ /d due to /d
+  being usless in that case.
 
 2010-07-01 v0.69 Shlomi Fish 2938 tests
   * Add support for GraphViz subgraphs.

Graph-Easy/lib/Graph/Easy/Parser.pm

       next if $curline =~ $qr_comment;
 
       # convert tabs to spaces (the regexps don't expect tabs)
-      $curline =~ tr/\t/ /d;
+      $curline =~ tr/\t/ /;
 
       # combine backbuffer, what to insert between two lines and next line:
       $line = $backbuffer . $self->_line_insert() . $self->_clean_line($curline);