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="(hic sunt crocodiles)";
+ print("We can print",NULL,"safely.");
print("* coalesce():");
- print("We can",coalesce("print","anything"),coalesce(NULL,"anything"),"safely.");
+ print("We can",coalesce("print","everything"),"almost",coalesce(NULL,"anything"),"safely.");
+ echo("Surprisingly ->",NIL," (you can't see this)");
+ print("<- nothing special here.");
print("* OFS");
+ OFS="";
+ EOL="";
+ print("We","Can","Print","Without","Spaces","BetweenArgs.");
OFS=":";
- print("We","can","customize","print");
+ print("We","can","customize","print.");
+ OFS="...";
+ EOL="<--\n";
+ print("");
+ print("* MAYBE ?");
+ repeat(4) print((MAYBE ? "Hello" : "Hi"), (MAYBE ? "world" : "friend"), (MAYBE ? "!" : "?"));
+ print("* WHOKNOWS ?");
+ repeat(4) print((WHOKNOWS ? "Hello" : "Hi"), (WHOKNOWS ? "world" : "friend"), (WHOKNOWS ? "!" : "?"));
}