We don't bite newbies here... much | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I will agree with Joost except that you also need to
become used to print and similar functions.
This is the only unusual construction that you need to get used to early on. Otherwise arguments are separated by commas. Generally, just don't use the ampersand prefix and just don't use prototypes. Regarding predeclaration or definition, use use strict and use warnings and let perl train you. Your question is a good one and well worth better answers than you are apt to get. The problem is that your question embraces many aspects of Perl syntax and there is no short definitive answer. There is a lot of sense in Perl. I think you just need to grapple with her for a while and you will get her big picture. Attack smaller bits of your problem and use a more empirical method to learn. Perl is one of the more grown computer languages, versus spec'd; practice is a bigger part of learning due to this. Knowing the precedence of op's, what defines a list, and what is happening with context; knowing those will help with the issues you ask about. Be well. In reply to Re: Subroutine Bewilderment
by rir
|
|