In Python, I can do if var in list, where list in Python is the same as an array in Perl.
I got to thinking, what if I wanted to create an in operator just to play around? How would one get the LHS (in the above case var) so I can use it in whatever implementation I decide to use? Can someone recommend the appropriate documentation to someone who wants to start learning about perl on a little deeper level?
-stevieb
In reply to Create a new operator, get LHS by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |