Is it bad to learn multiple programming languages? [closed]
Closed 12 years ago.
UML representation of specific factory pattern
I have to create an UML class diagram from the following example code (Perl). I don’t think that the standard factory pattern match in my case or I don’t understand it correctly. I don’t have AbstractFactory
and ConcreteFactory
but a single Factory
.
Arrow => in Perl
What does the =>
mean in Perl?
Converting data-structure in Perl [closed]
Closed 12 years ago.
What is a “template” in Perl?
I can find all sorts of weird information about templates in Perl, but nothing about what they actually are.
conventions for friend methods in Perl
Perl doesn’t support a friend relationship between objects, nor does it support private or protected methods. What is usually done for private methods is to prefix the name with an underscore. I occasionally have methods that I think of as friend methods. Meaning that I expect them to be used by a specific object, or an object with a specific responsibility, but I’m not sure if I should make that method public (meaning foo
) or private ( _foo
) or if there’s a better convention? is there a convention for friend methods?
How does the GPL static vs. dynamic linking rule apply to interpreted languages?
In my understanding, the GPL prohibits static linking from non-GPL code to GPL code, but permits dynamic linking from non-GPL code to GPL code. So which is it when the code in question is not linked at all because the code is written in an interpreted language (e.g. Perl)?
Destructive @_ operation and passing @_ in the same statement
I’m looking for perl docs confirming the following behaviour, where passed @_ still holds the first argument, despite shift() which alters @_.
Is it better to use $filehandler or FILEHANDLER?
It seems like FILEHANDLER is more commonly used as a handler naming convention than $filehandler.
But it can give a bareword error if one forgets to use *FILEHANDLER in some constructions.
is it possible to monitor more than one stream simultanously?
E.g.
– $stream1 is the STDOUT of a child process and $stream2 is the STDERR of the same child process
– $stream1 is one child process and $stream2 is another child process