in reply to Help me understand this code?
Not the answer to your question (tho I will expand a bit on info sources), but the PRIMARY POINTS ILLUSTRATED BY THE CODE SHOWN ARE ... wait for them... just a little longer...
As to info sources: perldoc func, op, module_name is an incantation that will lead you to explanatory docs, right on your own computer. For example, for the regexen, you might want to see perldoc perlretut (or one of its siblings); for printf (which is a function and thus needs a "-f" before its name, thusly) perldoc -f printf (which will give you a referal to another function instead of usefully answer the question "what does it do?" unless you are intimate with sprintf's format arguement ...but that's a whole different can of worms); and, as an exercise to the OP, we have the likes of qw (for which vist re "quote word" and friends); some lists (defined by the square brackets) and a few more.
...and welcome to Perl and to the Monastery!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help me understand this code?
by ansabhailte (Novice) on May 21, 2015 at 22:24 UTC | |
by Anonymous Monk on May 21, 2015 at 22:44 UTC | |
by ansabhailte (Novice) on May 21, 2015 at 22:52 UTC | |
by Laurent_R (Canon) on May 22, 2015 at 06:27 UTC | |
by ansabhailte (Novice) on May 22, 2015 at 16:12 UTC | |
by AnomalousMonk (Archbishop) on May 22, 2015 at 08:50 UTC | |
by ansabhailte (Novice) on May 22, 2015 at 16:13 UTC |