Perl-Critic / PPI

53 stars 44 forks source link

Support for double diamond input operator #192

Open xsawyerx opened 8 years ago

xsawyerx commented 8 years ago

The double diamond (<<>>) input operator, introduced by @rgs in 5.22, provides a safer magic input operator that will not execute pipes as part of the input.

According to @Grinnz in Perl::Critic::Freenode, it gets parsed by PPI as two shift operators instead.

Here is the relevant output from PPI::Dumper:

  PPI::Statement
    PPI::Token::Operator    '<<'
    PPI::Token::Operator    '>>'