Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^9: ** operator in perl

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


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

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.

perl
xml
awk

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

    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?"

      More specific about why whitespace rules suck or more specific about why the above 3 examples *you* asked for fit the bill? I can go in depth either way but rather give a focused answer. I'm not flaming you, so if this is about discussion please reply and if not, don't bother. And yes, perl 5 is what I mean when I say perl. Be ready for the same suffering twins go through when they're named practically the same after p6 is born, though.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://741700]
help
Chatterbox?
[stevieb]: I've finally added the ability for berrybrew to fetch the list of perls available directly from Strawberry's releases.json file. Instead of pulling from there on every single call, I've added a berrybrew fetch, so it's only updated..
[stevieb]: ...on request. There's some supporting work I need to do, as well as update the docs, but it's in the v1.12 branch if anyone wants to play with it...
[stevieb]: ...issue 62 will track what else needs to be done.

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2017-03-31 01:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (364 votes). Check out past polls.