Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Disabling the interpretation of diamond <> operator in package?

by LanX (Cardinal)
on Apr 09, 2018 at 20:46 UTC ( #1212611=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<9> sub bla { bless [@_], "Test" }
    
    ...
      DB<12> bla < bla
    Unterminated <> operator at (eval 20) ...
    
  2. or download this
      DB<13> package Test; use overload ">" => sub { warn "works" };
    
    
      DB<14> bla > bla
    works at (eval 21)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1212611]
Approved by stevieb
Front-paged by haukex
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2020-12-04 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (58 votes). Check out past polls.

    Notices?