Closed atoomic closed 5 years ago
also tested with steps from #9 after patch
> perl -Ilib -MRef::Util::Rewriter -E 'use Test::More; note "Before:\n", qx[cat test.pl]; Ref::Util::Rewriter::rewrite_file( "test.pl" ); note "After:\n", qx[cat test.pl];'
# Before:
#
# sub is_array {
#
# return ref $_[0] eq 'ARRAY';
# }
#
# 1;
# After:
#
# sub is_array {
#
# return is_arrayref($_[0]);
# }
#
# 1;
note that 5d8b84ee98c5df30a7fb0e4064d4740eb1ccc947 can be cherry picked on top of master as itself, but was not able to perform tests without patches from #6
Travis CI build https://travis-ci.org/atoomic/ref-util-rewriter/builds/526979756
Merged the relevant commit. Thanks! :+1: