#perl - Thu 8 Mar 2007 between 00:44 and 00:55



Teratogena club
a brake lock
jalexyeah I have gas cap and wheel locks too =)
Teratogena hidden coil disconnect switch
jalexgeeesh, you dont even live in the ghetto do you?
Teratogenfunny thing is I had a hood lock in storage that I've been MEANING to put on the jeep
I put it on today, required installation of two bolts
a little bit late =(
well, I don't necessarily live in the ghetto
simcop2387-tvGumbyBRAIN, SEX
Teratogenbut it's an open-air jeep
GumbyBRAINItym alt.sex.stories.
simcop2387-tvyay!
eightbitbastard, did you get perl to run on a z80
eightbitbastarda z80?
jalexhttp://www.savannajones.com/categories/jeep_body_frame/ -- funny it even mentions stolen batteries ..hood lock haha
crazy world
eightbitbastardi'm looking for the shortest/fastest/easiest way to set all list values of a certain value to another value
Teratogenthat lock won't fit my 1994 jeep
I have an older type lock
dondelelcaroeightbitbastard: map
eg. map {$_ eq 'bar'?'baz':$_} LIST;
simcop2387-tvmap++
eightbitbastardok, i figured that's what everyone would say, i was wondering if there was anything better
Jmax-you could use a for/foreach loop
but that would be larger tahn a map
jalexsupermap is better than map
eightbitbastardnaw, too much work
jalexand ubersupermap is even better
dondelelcaroI mean, you could do other things, but if you want to take a list and return a list, map.
(or grep for special cases of map)
eightbitbastardhmm, just to make sure, map returns the modified array, correct?
simcop2387-tvyes, unless you modify $_
in which case you can do it inplace
but its non-obviou
s
eightbitbastardcan you show me a quick inplace example with $_ modified
simcop2387-tveval: @a=qw(1 2 3 4 5); map {$_++} @a; @a;
buubotsimcop2387-tv: 5
simcop2387-tveval: @a=qw(1 2 3 4 5); map {$_++} @a; \@a;

Page: 5 12 19 26 33 40 47 54 61 68 75 82 89 

IrcArchive