Welcome to the Monastery | |
PerlMonks |
Re^3: How to avoid "Use of uninitialized value" with printf?by GrandFather (Saint) |
on Apr 11, 2012 at 05:58 UTC ( [id://964456]=note: print w/replies, xml ) | Need Help?? |
There are a number of interesting parts to that statement. The sprintf is just a printf that returns a string instead of sending it to a file. map processes lists. The expression inside the map is evaluated for each element in the list in turn with $_ aliased to the current element. A list containing the result of evaluating the expression for each element is returned by map. join just glues elements in a list together using the first string as glue.
True laziness is hard work
In Section
Seekers of Perl Wisdom
|
|