Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2019-07-20 20:18 GMT
Find Nodes?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?

    Results (5 votes). Check out past polls.