echo("Hello"," ","world"," !\n");
print("* print()");
print("Hello","world","!");
- print("* MAYBE ?");
- repeat(4) print((MAYBE ? "Hello" : "Hi"), (MAYBE ? "world" : "friend"), (MAYBE ? "!" : "?"));
- print("* WHOKNOWS ?");
- repeat(4) print((WHOKNOWS ? "Hello" : "Hi"), (WHOKNOWS ? "world" : "friend"), (WHOKNOWS ? "!" : "?"));
print("* NIL");
print("We can print",NULL,"safely.");
+ NIL="(anything)";
+ print("We can print",NULL,"safely.");
print("* coalesce():");
- print("We can",coalesce("print","anything"),coalesce(NULL,"anything"),"safely.");
+ print("We can",coalesce("print","everything"),coalesce(NULL,"everything"),"safely.");
print("* OFS");
OFS=":";
print("We","can","customize","print");
+ OFS="...";
+ print("* MAYBE ?");
+ repeat(4) print((MAYBE ? "Hello" : "Hi"), (MAYBE ? "world" : "friend"), (MAYBE ? "!" : "?"));
+ print("* WHOKNOWS ?");
+ repeat(4) print((WHOKNOWS ? "Hello" : "Hi"), (WHOKNOWS ? "world" : "friend"), (WHOKNOWS ? "!" : "?"));
}