XP is just a number | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
It's because of the error right here:
So, what's happening? By typing #@ when you meant to type $# you initiated a comment. So "@foo . "\n"; was no longer code, but rather, a comment. That made the line in question look like this:
Notice how you're using the concatenation operator, "." to append the output from "printf "first set of dashes------------\n";" to the string "\nabove first set of dashes#: [". Before that concatenation can occur, that second printf has to be evaluated to obtain its return value (which is "1"). And in so doing, its side effect (in the functional sense) is taking place: It's printing the "first set of dashes....." line. Dave In reply to Re: Order of printf statements vs order of actual lines printed out
by davido
|
|