Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^7: ** operator in perl

by Zen (Deacon)
on Feb 05, 2009 at 19:32 UTC ( #741662=note: print w/replies, xml ) Need Help??

in reply to Re^6: ** operator in perl
in thread ** operator in perl

One example, significant whitespace.

Replies are listed 'Best First'.
Re^8: ** operator in perl
by chromatic (Archbishop) on Feb 05, 2009 at 20:44 UTC

    Name three general purpose programming languages without significant whitespace.

      For some reason my reply didn't post. There are many languages where whitespace is quite liberal and not taken to new heights of infamy like python, including C.


        It's funny you mention Perl. I assume you meant Perl 5. I have toke.c open right here. You might find the *SPACE macros illuminating. They're used in functions to disambiguate lexing of, for example, unary functions, non-predeclared barewords, line number detection, unary operators (a comment there gives an example of rand +5), version numbers, method calls, use invocations, shebang line parsing, line number detection in string eval constructs, the unary minus operator, the various occurrences of the > token, and I'm only a third of the way through the file.

        Can you be more specific than "I don't like Python's indentation, therefore any language with whitespace rules sucks?"

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://741662]
[planetscape]: Might be "well, come back!" Discipulus ;-)
[stonecolddevin]: that's a 2.0 k/d ratio, i'll take it
[choroba]: #cbstream still down?
[erix]: yeah, annoying
[choroba]: last ambrus: 1 week ago :-(
[erix]: let's invade Hungary
[planetscape]: darn
[erix]: probably on holiday, the slacker
erix is reduced to use a BROWSER. (remember those?)

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2017-06-22 21:05 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (530 votes). Check out past polls.