On Thu, Jan 02, 2003 at 06:45:00PM +0100, Martin Nilsson (bygger parser @ Pike (-) developers forum wrote:
We should really work on getting a Pike entry here. It'll require quite a lot of work though. http://pleac.sourceforge.net/
indeed, would be interresting. though it would be wise to read the perl cookbook for this, to see what the examples are actually intended to do, and not just blindly translate the perl source to pike.
here is the first example though:
//----------------------------- int i; // declare a variable of type int i = 'a'; // the ascii value of "a" i = '\n'; // the ascii value of a "newline" //----------------------------- string str; // declare a variable of type string str = "\n"; // a "newline" character str = "Jon "Maddog" Orwant"; // literal double quotes //----------------------------- str = #"This is a multiline here document terminated by a double-quote like any other string"; //-----------------------------
greetings, martin.