Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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.


Replies are listed 'Best First'.
Re^2: explanation of terms
by Anonymous Monk on Jan 03, 2013 at 08:01 UTC

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

      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.


        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 doubt that leaves me with a lot of silly questions like this...I'll take care...Thanks again for your help...

      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?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011406]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2018-06-24 23:23 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.