Re: Preferred language?

Joel Roth <[email protected]>
Newsgroups gmane.linux.distributions.gobo.general
Message-ID <20150328194257.GA11944@sprite>
Sergio Tortosa Benedito wrote:
> Hmmm... Didn't knew there was so much effort, I guess I should give Perl a
> try, the fact that I don't like does not mean I won't like it, still from
> what I have seen I don't it's syntax (namely I don't like C's one).
> 
> Again I'll give it a try as I would hate making a bad choice and finding
> time later Perl would have been more appropiate. But I hardly see this
> happening as I find Perl gives too much power to the developer (having
> pointers in a script scares the hell out of me).

Hi Sergio,

Perl references are similar to pointers, but not equivalent
and AFAIK somewhat safer. You generally use references when
handling complex data structures, such as arrays of arrays.
Also, when you pass a huge data data structure, it is faster
to do it by passing a reference than by copying.

do_something(@array)  # copies array
do_something(\@array) # passes a reference to array

The best references (no pun intended) for perl nowadays are
Learning Perl by Randal Schwartz, Modern Perl by chromatic,
Beginning Perl by Curtis Poe. The latter two are free to
download.

I found references to be much easier conceptually than
dealing with objects and classes. In fact, perl OO uses
references to represent objects.

Cheers,

Joel







 
> --Sergio
> El 28/3/2015 19:36, "Joel Roth" <[email protected]> escribió:
> 
> > Sergio Tortosa Benedito wrote:
> >
> > > I have also heard about Perl for administration, but truth is I don't
> > like
> > > it, neither the language nor the stale state it is right now (not that I
> > > have used that much, pretty much only in a subject).
> >
> > Well, not liking it sounds like a good reason not to use
> > it for your own projects. :)
> >
> > But Perl isn't stale! Perl 5 is getting regular releases,
> > and the development mailing list has heavy traffic. The Perl
> > Foundation is funding ongoing work to maintain and develop
> > the language. This year we are starting to see more
> > abilities to integrate perl 5 with the new sister language
> > referred to as perl 6.
> >
> > If anyone wants to know more about recent developments in
> > the two languages, talks at the recent Fosdem conference are
> > an excellent resource.
> >
> > http://video.fosdem.org/2015/devroom-perl/
> >
> > Perl 6 development has taken time, partly because the
> > demands of the language features have required a number of
> > CS advances, notably the ability to handle multiple
> > pluggable grammars.
> >
> > Of course all languages have strengths and weaknesses.
> >
> > Joel
> >
> >
> > > --Sergio
> >
> > --
> > Joel Roth
> >
> >
> > _______________________________________________
> > gobolinux-users mailing list
> > [email protected]
> > http://lists.gobolinux.org/mailman/listinfo/gobolinux-users
> >

-- 
Joel Roth
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.