#perl
16 October 2007
Total 40 pages. You are browsing page 1/40.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Tue Oct 16 00:00:14 2007
--- Day changed Tue Oct 16 2007
00:00 <****> http://pastebin.com/d6c81ca04
00:00 <****> jafari_: The paste d6c81ca04 has been copied to http://erxz.com/pb/4776
00:00 <****> how can i fix this i never seen this before
00:00 <****> "WebDragon" at 68.85.107.93 pasted "linus torvalds doing a talk on git vs cvs|svn" (1 line, 43B) at http://sial.org/pbot/28054
00:01 <****> Hi, for some reason the first line in the paste works- the second one doesnt. first one's my version of the regexp that tries to randomize the letters in the middle of the string leaving the first and last letters of the same string intact.
00:01 <****> paste here: http://rafb.net/p/ZBvB9s52.html
00:01 <****> http://en.wikipedia.org/wiki/Portal_%28video_game%29
00:01 <****> question is, why won't the second regexp (as given in some wise-ass tutorial) work?
00:01 <****> jafari_: just install Compress::Zlib
00:02 <****> In fact, I'd go as far as to say bzr is close to ideal as a VCS, except for one messy situation, and that's "cherrypicking" a merge... e.g. merging in 7 of the 10 revisions in a branch, but not the other 3.
00:02 <****> is it cause of the precedent brackets that needs to be placed in the eval portion of the regexp, i.e. between join and split?
00:02 <****> Aside from that ability, it's basically all there :)
00:02 <****> Somni: What's that in aid of..?
00:03 <****> Somni: ^ pasteling. you may find it useful info.
00:03 <****> old bans
00:03 <****> Byako: the first one isn't even valid Perl..
00:03 <****> Ooh... those were -b
00:03 <****> LeoNerd: just clearing out my bans
00:03 <****> I read +b.. my bad
00:03 <****> Byako: list context is slurpy.
00:03 * LeoNerd goes back to his pear
00:03 <****> Somni it didnt work
00:04 <****> Byako: and if you omit the parens, you'll be splitting $2.$3 rather than just $2.
00:04 <****> http://pastebin.com/d360f11a1
00:04 <****> jafari_: The paste d360f11a1 has been copied to http://erxz.com/pb/4777
00:04 <****> do'h. sorry Somni here's my version of the regexp: $_ =~ s/\b(\w) (\w+?) (\w) \b/$1 . join('', shuffle (split '', $2)) . $3 /gex;
00:04 <****> Byako: (i.e., you'll need parens *somewhere*
00:04 <****> )
00:04 <****> didnt paste the thing in full.
00:06 <****> jafari_: you're going to have to do it manually
00:06 <****> jafari_: I am in the middle of five different things, please be patient
00:06 <****> mine works too. I just cant figure out why the second one (from the tutorial) wont work as expected?
00:07 <****> Byako: I don't see a difference
00:07 <****> join('', shuffle (split '', $2))
00:08 <****> ok, only manually would work
00:08 <****> thats the difference. i've got a second bracky inside the join statement. otherwise it wont work. using the same text files to test it too
00:09 <****> Byako: as I said, list context is slurpy.
00:10 * PerlJam wanders off to do some work
00:10 <****> deparse: use List::Util qw(shuffle); join('', shuffle split '', $2);
00:10 <****> Somni: join('', shuffle(split(//, $2, 0)));
00:10 <****> PerlJam: k. :)
00:10 <****> deparse: use List::Util qw(shuffle); join('', shuffle (split '', $2));
00:10 <****> Somni: join('', shuffle(split(//, $2, 0)));
00:10 <****> i realise this is slightly offtopic in this channel, but does anyone know in what year the (german) nazi party was made illegal in austria?
00:11 <****> there's some other part of the code I'm not seeing
00:11 <****> base3_: www.wikipedia.com
00:11 <****> Somni: tried that
00:11 <****> how can i find the source to File::Spec
00:11 <****> if you mean wikipedia.org
00:11 <****> how do u do a force install in CPAN
00:12 <****> a3as3as3: perldoc -m File::Spec
00:12 <****> jafari_: just like that, see perldoc CPAN
00:12 <****> base3_: hm..
00:12 <****> base3_ Somni 1933
00:12 <****> http://de.wikipedia.org/wiki/%96sterreich
00:13 <****> why are you telling me?
00:14 <****> lol
00:14 <****> pretend you didn't hear. anyway that was the 1st time. the 2nd time was after the war
00:14 <****> base3_: Redirects to .org anyway.
00:14 <****> yes i meant the first time _abc_
00:14 <****> thank you very very much, i was sure someone in here could help me
00:14 <****> DOOM.
00:15 <****> you might not believe me, but i did search all the relevant pages on en.wikipedia to no avail
00:15 <****> goodness. gosh. they must have a link on wikipedia to go to #perl on freenode whenever it can't deliver :P
00:15 <****> base3_ fyi it was wikipedia that helped but apparently there are differences between the german and the english versions ...
00:16 <****> Byako goodness gosh maybe you don't remember how stressed out you can get when you have to write a paper and can't find crucial info
00:16 <****> Byako: they should do
00:16 <****> _abc_: Gosh, having to write a paper but not know how to research? I -would- be stressed out.
00:16 <****>
00:16 * Khisanth stretches dwu instead
00:16 <****> dwu how is your German ? I had to look in German to find it
00:17 <****> _abc_: Non-existent, but then again, I don't use IRC as research when I fail.
00:17 <****> I would find it hard to believe that wikipedia is the only place online that would contain this information
00:18 <****> DOOM?
00:18 <****> and that it is only available in German
00:18 <****> khisanth: in fact, if it is, it's violating wikipedia's own rules :)
00:18 <****> (rules that anyone can edit!)
00:18 <****> whatever it is, it is un-findable on the .en site
00:18 <****> why te hell im getting this error
00:18 <****> Undefined subroutine &Compress::Zlib::gzopen called at /usr/lib/perl5/5.8.5/CPAN.pm line 5722.
00:18 <****> iank: not exactly true, the references could all be offline :)
00:18 <****> i tried: install Compress::ZLib
00:18 <****> hobbs: in that case, the information exists elsewhere.
00:19 <****> _abc_: And... the rest of the web doesn't exist?
00:19 <****> hobbs: oh, he said online -_-
00:19 <****> dwu do a search and tell me
00:19 <****> ignore me sir!
00:19 <****> _abc_: Why bother, when you'll clearly do research for anyone that asks? Now quickly, what number xkcd is also known as Playpen Balls?
00:20 <****> I'd rather research dwu ...
00:20 <****> _abc_: go to a quality library.
00:20 <****> dwu: aren't there a /lot/ of xkcds about playpen balls?
00:20 <****> and _abc_, why are you researching dwu?
00:20 <****> library ? and quality ? here ? whoa.
00:20 <****> brb
00:20 <****> iank out of curiosity. why not ?
00:20 <****> purl, be keanu
00:20 <****> guess what the first results for "nazi party outlawed in austria" says :P
00:21 <****> perlbot: where you went?
Total 40 pages. You are browsing page 1/40.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
