Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: explanation of terms

by davido (Archbishop)
on Jan 03, 2013 at 07:38 UTC ( #1011406=note: print w/ replies, xml ) Need Help??


in reply to explanation of terms

perlintro, and perlop ought to just about cover it.

Presumably you're asking what the difference is between the "=" (assignment) operator and the "->" (dereference) operator. The first is used to assign a value (or values in the case of aggregate data-types), and the second is used to dereference a reference.


Dave


Comment on Re: explanation of terms
Select or Download Code
Re^2: explanation of terms
by Anonymous Monk on Jan 03, 2013 at 08:01 UTC

    thank you...i didnt know what '->' means...my question was also difference between $telnet and $t...does $telnet have some special meaning?

      does $telnet have some special meaning?

      Ask yourself what is the difference between $c and $controller?

      Oh, you say its impossible to know without seeing the code?

      Conceptually, $telnet is to $t as John is to Fred. They're just different variables, represented by different names. They have no special meaning aside from whatever meaning the programmer who used them intended for them.

      If you want to know what the programmer's intent was when she used those names, you'll probably have to read and understand the source code in a broader scope than just a variable name and operator here and there. If I say, "Be advised th", you wouldn't have any idea what I'm trying to advise you of any more than I know what your script does just by seeing two variable names.


      Dave

        Thank you a lot Dave..:) I have just started learning perl and its my fault that i have started interpreting a sample program line by line...no doubt that leaves me with a lot of silly questions like this...I'll take care...Thanks again for your help...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2014-08-31 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls