Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: -> operator

by naikonta (Curate)
on Nov 14, 2007 at 01:38 UTC ( #650647=note: print w/ replies, xml ) Need Help??


in reply to -> operator

Basically, Perl has its own way to interprete the syntax, for example to distinct the same operators or functions usage, based on some contexts. Parsing things such as $scalar->[0] or $scalar->{key}, or even $scalar->method is straightforward and will Do What I (programmer) Mean. Please see perlref for detail.

wont it get confused.Wont there be any ambiguity?
In case of ambiguity, Perl will try its best to Do What I (programmer) Really Mean. If it gets confused though, it may warn me, or I can make it confess to show more detail what or where it gets confused. This helps me to see that my code might not steadily represent what I mean. And if it really doesn't have any idea on some piece of code, or refuses to look further, it will die and let me informed that what and where in my code some part just doesn't make sense to it.

Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!


Comment on Re: -> operator
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://650647]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2014-08-30 09:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls