#perl
03 October 2007
Total 41 pages. You are browsing page 4/41.
First :: Prev :: [...] [2] [3] [4] [5] [6] [...] :: Next :: Last
03:20 <****> duu: Speaking of non-super sports cars, Toyota Celica. Just pretty.
03:21 <****> dwu: Eh, I guess.
03:21 <****> So if it's not the code...
03:21 <****> I had a celica all-trac. it was all balls.
03:21 <****> dwu: I dislike the sort of large rears that these cars have.
03:21 <****> "Hatchbacks" I guess.
03:21 <****> Not really, a hatchback is a specific type of car, not just a large rear.
03:21 <****> Well.
03:22 <****> But you get what I mean.
03:22 <****> As opposed to a sedan.
03:22 <****> Yes, you don't like large rears. Fair enough.
03:22 * duu snickers
03:22 * dwu checks her arse self-consciously.
03:23 <****> dwu: I dunno. I just think cars need to have a high middle and a low end an front.
03:24 <****> duu: Mm, fair 'nuff. I tend towards either cars that taper out from the front, or are sleek all the way.
03:24 * platypus likes big buts.
03:24 <****> buu: I guess you'd like the RX7, then.
03:24 <****> And I cannot lie.
03:24 <****> dwu: Well, the SLR almost has a large back..
03:24 <****> whis is this perl -ne 'foreach($_=~/(ac.?gc)/gi){print "$1\n";}' stzaseq.txt not matching "actgc"
03:24 <****> buu: Smaller than some, though.
03:25 <****> dwu: Yeah, the rx7 will do.
03:25 <****> buu: Mmhrm. It's pretty.
03:25 <****> the foreach runs but it doesn't run
03:25 <****> dwu: After staring at all of these super cars though, it looks sort of cheap =[
03:25 <****> mmh, zenlicious
03:25 <****> rabid: do you mean if?
03:25 <****> buu: Hahahah. The McLaren technically -is- a super car, isn't it?
03:26 <****> dwu: Oh definitely.
03:26 <****> an SLR is most definitely a supercar :)
03:26 <****> dwu: No technically about it.
03:26 <****> Mmkay, so at least I learnt -something- from the boys... :)
03:27 <****> ^.^
03:27 <****> dwu: I was referring to the rxs
03:27 <****> buu: Ah right.
03:27 <****> RX7 = not super
03:27 <****> I wonder why that is.
03:27 <****> dec: I did say I liked non-super sports cars, and the RX7 definitely is a sportscar :)
03:28 <****> bpalmer: no its a long string
03:28 <****> I don't like the rotary, they're too... small.
03:28 <****> i know there is an "actgc" in there
03:28 <****> Sports car needs to feel big and torquey :)
03:28 <****> *snort*
03:28 <****> dwu: I dunno. Cars are nice and all, but if you actually had space to use a supercar, it'd take hours to get anywhere.
03:28 <****> Which isn't cool.
03:29 <****> and then someone would ding the door or something
03:29 <****> rabid: your foreach makes no sense.
03:29 <****> an if might make sense.
03:29 <****> I need to get the position of the match
03:29 <****> buu: Mmhrm. I really just want a nice-looking car that isn't ferociously expensive and too common.
03:29 <****> thrig: Yeah.
03:29 <****> oh, hmm, actually I'm wrong. sorry, missed /g
03:29 <****> buu: e.g. my current want-car is the MX5.
03:29 <****> bplamer: yes i understand
03:29 <****> dwu: I'm waiting for automated cars.
03:29 <****> bpalmer: is that the problem?
03:30 <****> buu: Eh, well, maybe.
03:30 <****> want-car
03:30 * platypus is more interested in two wheels.
03:30 <****> Singlish is so bizarre.
03:30 * pravus agrees with platypus
03:30 <****> That's... not Singlish.
03:30 <****> ;)
03:31 <****> bpalmer: i need to iterate through all the matches. If only does one match
03:31 <****> bpalmer: I'm trying to locate and count a pattern.
03:31 <****> infi: :P
03:32 <****> Hrm. Food.
03:32 <****>:O
03:32 <****> ok I got it. the while loop does the job
03:32 <****> it works fine now.
03:32 <****> so is foreach only for arrays?
03:32 <****> tes
03:32 <****> lists
03:33 <****> yeah
03:33 <****> yes*
03:33 <****> thanks guys
03:33 * fastfinger has been defeated my the all mighty, telnet.
03:34 <****> whats the differance between $& and $1
03:34 <****> for (qw{there is no array here}) {
03:34 <****> perldoc perlvar
03:34 <****> how can i tell print not to add new line without chomp or modifying the OFS variables.. something similiar to "echo \c" ?
03:35 <****> pitty: print only adds \n by default with -l or similar set (perldoc perlrun, perlvar)
03:37 <****> ok i got the answer for that as well. $1 only counts if the pattern is in () isn't it?
03:37 <****> bpalmer: thanks
03:37 <****> for the tip
03:41 <****> hmm, problem solved @_@
03:41 <****> What's the easiest way to check if i have a particular module?
03:41 <****> perl -Mfoo -e1
03:41 <****> try to use it?
03:42 <****> Apparently, i will need to use a module. Looks like telnet has more up it's sleev. :p
03:44 <****>, if you can, you prolly have it.
03:44 <****> If you can't, you either don't have it or it doesn't have documentation.
03:46 <****> or, 'perl' isn't the perl you think is perl
03:46 <****> ... uh.
03:46 <****> folks often run amock with CPAN, and end up with /usr/local/bin/perl and /usr/bin/perl and confusion
03:47 <****> yikes?
03:47 <****> less so now that CPAN tries less hard to install the latest Perl from the default CPAN module advice
03:47 <****> ah.
03:48 * rjbs comes to see how the other half lives.
03:51 <****> rjbs: GET OUT.
Total 41 pages. You are browsing page 4/41.
First :: Prev :: [...] [2] [3] [4] [5] [6] [...] :: Next :: Last
