Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Junkyard Wars, Perl Style

by mincus (Chaplain)
on May 09, 2001 at 18:19 UTC ( #79091=note: print w/replies, xml ) Need Help??


in reply to Junkyard Wars, Perl Style

Awesome idea!

Maybe we could do something like this as well

You have--
  1. one array
  2. 3 scalers
  3. 1 for loop
  4. 3 hours
  5. ...

to do task X. And you would only be allowed to use that in code, and nothing else... you could even go as far as to say how many  { } and semicolons... dunno, just a thought.

UPDATE: Added elipse so show that list was not conclusive. Wiseguys ;)


.mincus
telnet://bbs.mincus.com

Replies are listed 'Best First'.
Re: Re: Junkyard Wars, Perl Style
by premchai21 (Curate) on May 09, 2001 at 19:59 UTC
    You don't get any assignments? Or regexen? Or equivalence tests? Or push, pop, shift or unshift? Or even just a weensy concatenation? And no print statements or inputs? Good grief...
    my @x; # The array my ($a,$b,$c); # The scalars for ($a,@x,$b,@x,$c,@x) { }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://79091]
help
Chatterbox?
[Corion]: choroba: Yeah - I found that if you have the "right" datastructure from the start, it's fairly easy, but if you have some global datastructure that you mutate, you have to rewrite a lot to pass around the results instead.
[Corion]: I find the process quite similar to (in Prolog) passing around an accumulator variable in recursive predicates
[1nickt]: Good morning, brainy monks!
[marto]: Hi 1nickt, I know it's early days, but how is the new job?
[Corion]: Hi 1nickt!

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2017-12-11 11:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (289 votes). Check out past polls.

    Notices?