| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Comments:
<0> er, -wlne <1> SDTIN. what a helpful filehandle! <1> hobbs: and a ) <0> japhy: that too. I just woke up ;) <1> welcome to #perl <0> but my heart was in the right place <2> hobbs, where does the file name go in there? <0> lesshaste: at the end <2> perl -wlne '/(\w{2}\d{4}/ && print $1 file ? <0> perl -wlne '/(\w{2}\d{4})/ && print $1' t # Why is my file named t? <3> perlbot: be lesshaste <4> <2> WHY USE PEARL!? C IS FASTAR?!?!? <3> strong point, lesshaste . <1> lesshaste: no <1> lesshaste: perl -lne '...' filename <3> japhy: didn't i say that like 30 minutes ago?
<2> ah cool.. missing ) :) <2> thx all <1> sili: I haven't been paying attention here until just now <2> you are perl geniuses ;) <3> japhy: ya, i hate you, too. <5> Heya <3> dazjorz: yo whaddup, son!? <2> perl -wlne '/(\w{2}\d{4})/ && print $1' file <5> sili: Yo dude, l1fe is gr33t man ! Sup with u ? <6> does anyone know a good lightweight gui (no vim/emacs plx k thx) textpad/editor that does brackets highlighting ? <3> dazjorz: just chillen, having a bud. <1> anyone know an online web site with greek and english texts of the new testament? <3> japhy: i try to stay away from religious propaganda. <5> sili: C00l man, U played zum CounterStrixez lately dude??? <1> the greek part is the important thing, but since I don't know greek offhand, I'd like to see the english translation as well <7> sheeeeeesh <5> ProN00b: If you find one, tell me <1> sili: I don't consider it propaganda, so I don't mind seeing it. <3> dazjorz: nah, i been playing WoW! i pl4y3d for 13 hours straight this weekend. i'm level 940349!! ****en tight, y0 <7> I really don't understand perl's unicode support <6> dazjorz, theres notepad2 for windows *_* <3> japhy: that's because you've been seduced by it. <3> japhy: kinda like hitler seduced all those germans... they didn't consider his l33t talk propaganda. <8> hahahha <3> to be. <8> excellent. <1> sili: I might have said "yeah" to that several years ago, but not now, not since I've been reviewing it and re-reading it and studying it <8> Hitler's 'l33t talk' <5> sili: Y00! WoW great m4n ! Im a n00b at WoW !! ! 11! hahahaha Im lvl 5 man hahahaha!! 11!!11! <9> japhy, blueletterbible.org has a greek/hewbrew concordance for each verse <1> bDerrly: ah, excellent. <9> s/hewbrew/hebrew/ <3> dazjorz: lolz!!1111shift one <10> hi <5> ProN00b: Will it highlight Perl code too then? I'll try it out <1> oh geez. that's already in my history. how did I not know that? <10> is it possible to generate a unix md5 p***word with perl ? <0> acecile: perldoc -f crypt <11> crypt. To access this perldoc please type, at a command line, 'perldoc -f crypt'. You may also find it at http://perldoc.perl.org/functions/crypt.html <3> my dad's family used to try and make me a good catholic... i always felt wrong going to church. i've been much happier not going <8> Oh modem how i hate thee. <10> thanks (reading...) <3> EvanCarroll: where art thou broadband? <5> Damn, Why didn't Microsoft get the idea of symlinks too... I can't just rename notepad and make a symlink from notepad to notepad2. #### Windows <8> sili: I am. <8> sili: but I need to dial into clients computARS. <6> dazjorz, yes, it will, but its windows only (through it will maybe do some things wrong, since perl is the only thing that can parse perl ^^) <3> EvanCarroll: better to suffer the slings and arrows of slow ISPs, than to have no intarweb at all <8> I have ****ing broadband garr. <8> I need to dial into computers that don't <8> and down load stupid inventories. <8> and my modem is raping minicom <5> ProN00b: Yea, that's what I was afraid of. Especially if Perl 6 comes out, it'll take a while before all text editors understand it correctly <8> Perl6 is out, it was renamed to ruby. <1> text editors for perl 6 will have a hard time doing their job <3> they decided to ditch all the useful features, though <1> especially since you can come up with your own syntax. <3> japhy: i can hear the cridics now <3> japhy: p6 is write-only. it's too hard to maintain <8> hahhahah <3> critics.
<8> Reusing perl5 complaints on perl6, before it comes out. <8> If perl 6 is more of perl 5 how will anyone maintain it?!?!?!?! <3> that's such a retarded argument <8> obviously you can only possibly be smart enough to write it. <12> hey <12> i'm trying to do some text parsing and I was wondering if anyone had any advice on how to put this data into a hash: http://rafb.net/paste/results/J1B3Sd21.html <11> The paste J1B3Sd21 has been moved to http://erxz.com/pb/1313 <13> fixed-width text? unpack or substr <12> it's fixed width <12> i'm just hung up on lines 4 and 5 really <1> yeah, definitely unpack() or substr(). <3> mauke: that's retarded. split //, $str; my $stuff = join "", @a[0..10] <12> sometimes they are there sometimes they are not but they should be a part of line 3 <13> sili: what? <12> i'm just looking for a clever way to build my hash <1> leku: you should check to see if the mod/port/model/serial columns have values <1> if they DO, that is a new entry <12> like if you split it on spaces into an array, and the array only had one element, you could say that data belongs to mod 1 port 1 <3> mauke: i got fatty carpet burn on my ankle doing flares this weekend. <1> if they do NOT, the entry belongs to the most recently mod/port/model entry <12> yeah <12> hrm <13> GumbyBRAIN: talk to sili <14> that is obviously powerful because it was trying to you guys, but you can make local edits, and it's to be a test suite, and it is fun. <1> my @fields = unpack("A3 x A4 x A20 x A20 x A*", $record); <3> GumbyBRAIN: sili <1> the 20's are probably wrong, I didn't count <14> return: sili-- sili-- sili-- sili-- sili-- sili-- sili. <15> anyone have any hits for testing a webapp? Is Test::WWW::Mechanize most favored? <12> wtf is that japhy? 8) <1> but it should be the length of the particular field <15> hints even. <3> AHHH THAT ****ING BASTARD <1> leku: perldoc perlpacktut <11> perlpacktut - Perl pack() and unpack() tutorial. To access this perldoc please type, at a command line, 'perldoc perlpacktut'. You may also find it at http://perldoc.perl.org/perlpacktut.html <12> cool <3> GumbyBRAIN: you're such a **** <15> GumbyBRAIN: sili <14> good point. <3> see feddy fail! <15> GumbyBRAIN: cfedde <3> haha, you've been rate-limited. <15> my nick breaks it. <3> GumbyBRAIN: cfedde <3> :( i guess you're right. <1> leku: anyway, if, then, $fields[0] is "", then $fields[4] belongs to the previously record's list of versions <1> leku: and it turns out those 20's should be 19's. <13> sili: pwnd <15> someone is messing with my head... <12> k <12> cool <12> i was gonna do it a different way just counting the amount of elements in the array built by split(/\s+/, .. <1> leku: but you can't split on whitespace, since the fields can contain spaces themselves. <12> yeah <12> i had that problem earlier <12> very nice, thx <1> you're welcome <13> perldoc perlpacktut <11> perlpacktut - Perl pack() and unpack() tutorial. To access this perldoc please type, at a command line, 'perldoc perlpacktut'. You may also find it at http://perldoc.perl.org/perlpacktut.html <1> already said it, SLOW POKE <13> oops :/ <1> it's okay mauke. blame it on the red-shift. <13> communist conspiracy! <1> heh. <1> better than blue-shift. those damned smurfs and their politics! <12> gah <12> unpack is heavy <1> unpack is powerful. <12> yeah that's what i Meant 8) <1> learn the parts of it you need to learn now <1> put the other stuff aside <16> hello all. i have problem with installation DBD::PgSPI module. PostgreSQL version 8.0.4 (installed from Gentoo portage postgresql) PgSPI.h:26:20: ppport.h: No such file or directory <3> there be dragons there.
Return to
#perl or Go to some related
logs:
ubuntu change icon gimp convert rgb565 bitmap perl math (2 * substr unable to anonymously mmap 67108864: Resource temporarily unavailable
libkdu_v42R viseztrance #python #centos #math xsublim ubuntu
|
|