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

Channels


#perl

26 October 2007


Total 31 pages. You are browsing page 4/31.

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

01:41 <****> that last one is the one you should strive to understand and use
01:41 <****> it's relatively simple
01:42 <****> and it gets rid of the temporary array you were using
01:42 <****>); my %lines; @lines{@lines} = (1) x @lines;
01:42 <****> no
01:42 <****>) { chomp; $lines{$_}++ }
01:42 <****> what does this line do
01:43 <****> they all do the same
01:43 <****> @lines{@lines}=(1) x @lines;
01:43 <****> that's a hash slice assignment
01:44 <****> it's not included in LP hash chapter
01:44 <****> hash slices should be
01:44 <****> first lines is a hash, second lines is an array, third lines is a scalar
01:44 <****> you mean (1) x @lines is hash slices
01:44 <****> no, @lines{@lines} is a hash slice
01:45 <****> what does it return
01:45 <****> 3); [@hash{'foo', 'bar', 'baz'}]
01:45 <****> Somni: [1,2,3]
01:45 <****> Not that I wish to attempt this, but is there any way of NOT having to declare: my $self = shift; in every single method of an object?
01:45 <****> i.e. one assignment to cover all?
01:45 <****> which perldoc looks up switches again?
01:45 <****> perldoc -X -f ?
01:45 <****> w3: probably, but it's bad juju
01:46 <****> also, my($self) = @_;
01:46 <****> then just tack on more arguments to that my
01:46 <****> -f -s
01:46 <****> thanks!
01:47 <****> w3: yes.
01:47 <****> w3: but it's not production yet.
01:47 <****> w3: wait for Moose::Declare.
01:47 <****> Heh, thanks
01:47 <****> Yum.
01:47 * apeiron shall revel in the bad Moosey juju.
01:49 <****> and this doesn't do what I expect because.....?
01:49 <****>{directory} . $filename ) {
01:49 <****> print!
01:49 <****> wtf
01:49 <****> why do you have a print in there?
01:49 <****> where the hell did that come from?
01:50 <****> Hah
01:50 <****> @hash{@keys} returns all values
01:50 <****> right?
01:50 <****> depends on what's in @keys
01:50 <****> a list of keys
01:50 <****> depends on what is in keys
01:50 <****> ack
01:50 <****> just like $hash{$key} return one value
01:51 <****> can i understand it like that?
01:51 <****> I dunno, can you?
01:51 <****> is there some sort testing framework for simulating LWP requests/responses without actually contacting a remove server?
01:51 <****> err... remote
01:51 <****> pravus: there was a mock object somewhere on CPAN
01:51 <****> Test::Mock::LWP
01:51 <****> though that was not the one I was thinking off
01:51 <****> of
01:52 <****> Somni++ # awesome
01:52 <****> (reinventing the wheel)--
01:52 <****> Hehe
01:52 <****> I've only recently joined Freenode, it's a nice network
01:53 <****> #karma the wheel
01:53 <****> Haha
01:53 <****> arf, wrong channel
01:53 <****> w3, Register your nick. :)
01:53 <****> For a couple of years I resided solely on private IRCds
01:53 <****> perlbot: karma the wheel
01:53 <****> the wheel doesn't have any karma
01:53 <****> (the wheel)--
01:53 <****> w3: Just wait until you /msg people without realising you haven't identified yet.
01:53 <****> Juerd, heh
01:53 <****> I make vanishment
01:53 <****> w3: and get mad at them because they don't reply, while your status window is filling up with error messages that you never notice
01:54 <****> Status window? pff
01:54 <****> This is why you *disable* the silly status window, so you *do* see the messages. :D
01:54 <****> Then I get messages in windows not related to the messages. No thanks.
01:54 <****> blarg.
01:54 <****> apeiron, I like change, generic nicks, and the elusiveness that come with them
01:55 <****> w3, Oh, so you're a troublemaker, then, relying on anonymity.
01:55 <****> Not a troublemaker as such
01:55 * apeiron notes the 'as such'.
01:55 <****> Well.
01:55 <****> I don't go round trolling/flaming in channels, if that's what you mean
01:55 <****> Plenty of other ways to start trouble.
01:56 <****> Actually, it's more like trouble came to me, and I wish to avoid it, in a way
01:58 <****> I'm leaving my past and problems behind me now, to the future! :)
01:58 <****> Sure. Trouble's looking for you.
01:58 <****> This isn't soviet russia.
01:59 <****> Juerd, I was in a certain situation where it was indeed looking for me, and for over 6 months.
02:00 <****> w3: Do you want to talk about it?
02:00 <****> To be honest, no more
02:01 <****> w3: Then what do you want to talk about?
02:01 <****> Your favourite colours
02:01 <****> Mine are blue and red. What are yours?
02:01 <****> w3: Start talking :)
02:01 <****> I like all primary colours, and yellow.
02:02 <****> black.
02:02 <****> I like blue.
02:02 <****> Black is not a colour
02:02 <****> I like violet a lot too.
02:02 <****> Oh joy
02:02 <****> Colour should be spelled 'color'.


Total 31 pages. You are browsing page 4/31.

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo