|
Posted by grocery_stocker on May 23, 2008, 3:41 pm
Please log in for more thread options > In article
>
> > How are references and aliases in perl different than references in
> > aliases in C++?
>
> Some differences (not exhaustive):
>
> Aliases in Perl are like references in C++: a different way of
> accessing the same object.
>
> References in Perl are like pointers in C/C++: indirect access to an
> object. However, in Perl you cannot do arithmetic on references the way
> you can for C/C++ pointers (e.g. *(p++) = getchar();)
>
> In Perl, references are scalars, not separate pointer types as in C/C++.
>
> In C/C++, arrays are really pointers to the first element in a
> contiguous set of elements. In Perl, arrays are separate objects. A
> reference to an array in Perl is different than a reference to one of
> the members of the array.
>
> --
> Jim Gibson
Everytime I ask a question on the newsgroup, i keep on thinking "I'm
sure things would have been a lot easier if I would have taken more
than 6 week of FORTRAN." I don't care what anyone says. Learning to
program on your own. mastering the core concepts without formal
schooling, and then actually making it as a programmer takes a certain
level of skill and internal drive. Not everyone has it.
I think I only know a few people with no more than a high school
education that are doing the same kind of work, for the exact same
pay, as a person with an advanced degree in the sciences.
|