xsawyerx / ref-util-rewriter

Rewrite your code to use Ref::Util
Other
1 stars 2 forks source link

Cannot replace multiple ref `ref $foo && ref $bar` #12

Open atoomic opened 5 years ago

atoomic commented 5 years ago

notice that the second ref is not replaced as is_ref

> perl -Ilib -MRef::Util::Rewriter -E 'say Ref::Util::Rewriter::rewrite_string( q[ ref $foo && ref $bar ] ); '
 is_ref($foo) && ref $bar