
write("my message to log file\n");
|
int i = 2; write(sprintf("i=%d\n", i));
|
array a = ({ "test", "test2", 2 }); write(sprintf("a=%O\n", a));
|
a = ({ /* 2 elements */
"test",
"test2"
})
|
![]() |
the %O format is very useful since it can output any type from int to mapping. The only type you can't format is object. |