Home Page   #c  #ruby-lang  #cisco  #mysql  #apache  #javascript  #java  #perl  #php  #openmoko   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#perl

10 October 2007


Total 40 pages. You are browsing page 5/40.

First :: Prev :: [...] [3] [4] [5] [6] [7] [...] :: Next :: Last

03:04 <****> if necessary (rare) it's more common to split the sting: @chars = split //, $str;
03:04 <****> s/sting/string/
03:05 <****> heh
03:05 <****> then you can sliche and splice the array
03:05 <****> Jon9e: where do you call makeHash?
03:05 <****> thanks anno-
03:06 <****> NOTevil: i have to read up some more on scoping. I actually don't know where i should do that. probably within the 'renameNew' sub?
03:06 <****> so that the hash will be visible to the latter sub, yes?
03:06 <****> trying to come up with a super-quick way to print out newlines every 70 chars in my string. Text::Wrap will work, but I have to set some things so it doesn't only break at word boundaries
03:07 <****> *exactly* every 70 characters?
03:07 <****> join "\n", split /.{70}/, $string; <--?
03:08 <****> that split needs a capture
03:08 <****> damnit
03:08 <****> i lose again!
03:09 <****> s/(?=.{,70})/\n/g # or similar
03:09 <****> preaction, haha you suck at perl
03:09 * apeiron runs
03:09 <****> that means i suck at life!
03:09 <****> oh noes!
03:09 <****> Better get a new one.
03:10 <****> The store's down the hall.
03:10 <****> guess Text::Wrap is the simplest and cleanest way
03:10 <****> wonder how many years you guys've been usign perl.
03:10 <****> thanks for the regexps
03:10 <****> Four-five-ish.
03:10 <****> perlsurvey.org should be releasing its results shortly.
03:10 <****> infi, Indeed.
03:11 <****> my ass, they're run by PHP.org
03:11 <****> THEY WANTS OUR SEKRITSES
03:11 <****> not a good sign, huh?
03:13 * CPAN upload: JSON-Any-1.09 by PERIGRIN
03:17 <****> GumbyGumby: gumby?
03:17 <****> NOTevil: Felis catus is your friend.
03:20 <****> GumbyGumby, apeiron apeiron apeiron
03:20 <****> apeiron: to sum it up, $glyph ne $grapheme.
03:21 <****> gumby, help!
03:26 <****> asking chewing gum for help?
03:27 <****> we should just make a perl version of gumby with a camel instead of a horse
03:28 <****> GumbyGumby, Dongs?
03:28 <****> preaction: "Insert into dongs k thx = ?!
03:28 <****> .... it's just not the same....
03:28 <****> GumbyGumby, Break out the dongs of war!
03:28 <****> apeiron: Out in the morning for explosions and war.
03:29 <****> GumbyGumby: get to the lab and have the GumbyBrain's brain installed.
03:29 <****> NOTevil: Because everybody is not installed, i don't have to.
03:29 <****> GumbyGumby, DAMMIT I SAID BREAK OUT THE DONGS OF WAR
03:29 <****> apeiron: I was a spy for the money to buy me a break.
03:29 <****> not even the back-talk is the same...
03:29 <****> perlbot <3
03:29 <****> bullshit, I'm way more than 3
03:30 <****>3
03:30 <****> You're damned right I am!
03:31 <****> apeiron: i'm curious... what sorts of .NET services do you connect to with SOAP::Lite?
03:32 <****> I hope you aren't questioning .NET's greatness.
03:32 <****> pravus, Client stuff for $work.
03:32 <****> apeiron: it's all custom-developed stuff?
03:32 <****> pravus, Yeah.
03:32 <****> jagerman: no... no... i'd never do that :/
03:35 <****> I had a student ask me today why 2(x + 3) didn't work as: 2*(x + 3)
03:36 <****> Anyone know of a good reason?
03:36 <****> in math or in some programming language?
03:36 <****> Does Perl have syntax or passing functions as first-class values?
03:37 <****> s/or/for/
03:37 <****> preaction: It was in Java
03:37 <****> tnks, you mean make a subref?
03:37 <****> my $sub = sub { code; }
03:37 <****>( @foo );
03:37 * apeiron gives preaction a ;
03:37 <****> preaction: But the same could apply to perl, as 2($x + 3)
03:37 <****> damnit!
03:38 <****> jagerman, i assume because of the potential ambiguity of "2()"
03:38 <****> what about: y(x + 3) ?
03:39 <****> Ah, that's a bit more problematic in non-sigil languages
03:39 <****> is that xy + 3y? or a function/method call?
03:39 <****> (implicit operators)++
03:39 <****> perlbot karma implicit operators
03:39 <****> Karma for implicit operators: 1
03:40 <****> one seems a rather lonely number
03:40 <****> the loneliest
03:40 <****> (implicit operators)--
03:40 <****> fixt
03:40 <****> dkr: out of my head, please
03:40 <****> apeiron: thanks, I was kind of being facetious
03:40 <****> preaction: pravus, actually, I was thinking of making a function pass a reference to the next function to execute, to make a state machine.
03:41 <****> tnks: an already defined function?
03:41 <****> make a subref, \&subname
03:41 <****> pravus: yeah
03:41 <****> perldoc perlref
03:41 <****>( @foo );
03:41 <****> preaction: thanks.
03:41 <****> beat me to it
03:41 <****> quality
03:42 <****> Uhm, no thanks.
03:42 <****>(); ... }
03:43 <****> Why would you do that?
03:43 <****> jagerman: read the horrible thought part
03:44 <****> then it doesn't matter internally how the configuration hashes are grabbed, since they're subroutines and not hashes!
03:44 <****> it's GENIUS
03:45 <****> For some unknown definitions of genius, perhaps.
03:46 <****> mad genius?


Total 40 pages. You are browsing page 5/40.

First :: Prev :: [...] [3] [4] [5] [6] [7] [...] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo