Subject: | broken array example |
The MORE EXAMPLES section contains this:
@a = ("%s", "my string"); # using array, fmt as 1st arg
P @a;
@a = ("Hello %s", "World"); # format in array[0]
P @a;
P @a; # prints 1st of @a elements (Hello %s)
1) The last two lines are identical. Copy/paste error?
2) The last comment is wrong. The code doesn't print "Hello %s".
3) In fact, the last example contradicts the first one (they're the same code!).