in reply to Re: Perl "with" Java
in thread Perl "with" Java
I think the best advise is Don't try to write Perl code in Java
I think that is one of those statements that might sound insightful to some people, but in fact it's really hollow to the core.
I really have to disagree with this statement, for two reasons.
First, it is quite possible to try to write code using inappropriate idioms from another language. Over the years I have maintained Fortran code written in C, Java written in Perl, C written in Perl, and even Fortran written in Forth. A particularly stubborn programmer can often force idioms from another language into a different language. It is usually especially painful for any poor soul who must maintain this code.
The second issue is the frustration caused by trying to write Perl in Java. Learning a new language by trying to translate the syntax explicitly will often result in much frustration. So the advice to not write Perl in Java could be considered as a reminder that you should keep the target language's idioms and syntax in mind rather than trying to use Perl's idioms.