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

Channels


#perl

13 November 2007


Total 35 pages. You are browsing page 2/35.

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

00:59 <****> buu: but if i use that nowait option , it will return even though no input is recieved?
00:59 <****> yes
01:00 <****> it is akin to a "poll" in that case
01:00 <****> Not really..
01:00 <****> Blocking and polling are rather different..
01:00 <****> Right.
01:00 <****> So, if he's not blocking, then he's _______.
01:00 <****> ChibaPet: unpack can do "somthing" whether that something is what you want is a different issue
01:01 <****> Hm. Well. The tutorial to which you directed me seems pretty useful, so I'll try to suss out whether what I want is reasonable, then! :)
01:01 <****> "no"
01:01 <****> eval: [unpack "C*", pack "H*", "F00F123456"]
01:01 <****> Khisanth: [240,15,18,52,86]
01:04 <****> Khisanth, so the proper way to do what I want is to have pack in there? Strange. My concept of unpack needs to change, I guess. I'm looking at the string of hex digits as being "arbitrary data to unpack". Hm.
01:04 <****> ChibaPet: But it isn't, it's a collection of ascii letters..
01:05 <****> Hm. I can see how that's true.
01:07 <****> hrm regex, un/pack templates, format
01:07 <****> any other languages inside Perl? :)
01:08 <****> SQL?
01:08 <****> Pushing it a bit I suppose.
01:09 <****> So, unpack "C*", pack "H*", "ABCDEF" seems as convoluted as my map { hex $_ } unpack("a2a2")... Is the pack/unpack option lighter on cycles?
01:09 <****> Pack is fairly efficient, yes.
01:10 <****> I copied this line by an example: for my $set_key ( sort keys %settings ) it works, but I would like to understand why. Can someone please explain me it? I can't understand a "for" in this form
01:10 <****> for "iterator" "collection"
01:11 <****> GionnyBoss: perldoc -f foreach
01:11 <****> the for is just syntax - it means to take your "my $set_key" and give it the value of each member of "sort keys %settings" one at a time, changing to the next after each time through the loop
01:12 <****> $set_key is slightly more interesting than that though :)
01:12 <****> thanks ChibaPet
01:13 <****> buu, perhaps you'll be surprised to hear that unpack( 'x50000N' ... ) is far slower than unpack( 'N', substr( ..., 50000, 4 ) ).
01:13 <****> buu: how does perldoc work? If I try that command in a terminal, it says that it doesn't find documentation for foreach
01:13 <****> foreach is not a function
01:13 <****> GionnyBoss: Shucks.
01:14 <****> try "perldoc perl"
01:14 <****> Yeah,but I really thought -f would work.
01:14 <****> GionnyBoss: Look in perldoc perlsyn
01:14 <****> buu.
01:14 <****> SILI.
01:14 <****> GumbyBRAIN: perldoc perl
01:14 <****> Perl is clearly discussed in the sky?
01:14 <****> buu: who hired you?
01:14 <****> jjore-w: Um. What?
01:14 <****> sili: fonality
01:14 <****> Yeah, really, buu.
01:14 <****> buu: never heard of them. how is it so far?
01:15 <****> buu: ok thank you
01:15 <****> fonality like the dudes who make those fon APs?
01:15 <****> sili: Ghetto
01:15 <****> iank: Indeed.
01:15 <****> Neat.
01:15 <****> nice. still in LA though?
01:15 <****> Yeah
01:15 * iank pats his fonera
01:15 <****> no, he moved to spain
01:15 <****> Heh.
01:15 <****> Spain would be nice.
01:16 <****> sili: I'm totally bored of the lack of weather.
01:16 <****> buu: I can send you some earthquakes if you'd like
01:16 <****> Would you?!
01:16 <****> it ain't weather, but it ain't boring..
01:16 <****> Had a couple not too long ago.
01:16 <****> They're pretty disturbing.
01:17 <****> jjore-w: hrm but those are also not quite the same thing
01:18 <****> Khisanth: what? how?
01:18 <****> 'x50000N' is skip forward 50000 characters, then decode an N.
01:19 <****> 50_000 bytes :)
01:19 <****> unpack( 'N', substr( ..., 50000, 4 ) ) is skip forward 50000 characters, return 4 characters, decode them as an N.
01:19 <****> jjore-w: decided you don't hate it here, then?
01:19 <****> I would be astonished to hear that unpack's x thought in bytes and not characters.
01:20 <****> mst, this other #perl doesn't suck.
01:20 <****> IT DOES TOO.
01:20 <****> jjore-w: I think I'm the only irc.perl.org oper who explicitly doesn't care about #perl :)
01:20 <****> except when buu uses it to bait skiddies into packeting us
01:20 <****> Rofl.
01:21 <****> I so wasn't involved in that.
01:21 <****> mst: Not true.
01:21 <****> mst: I haven't been in #perl in years, except in error.
01:22 <****> oh, fair enough :)
01:23 <****> In reading pp_pack.c, it appears it respects character vs bytes.
01:23 <****> mst: Got a sec for a DBIx::Class question?
01:23 <****> unpack( 'x50000N', ... ) is "skip forward 50000 characters, decode an N"
01:24 <****> Anyone willing to share an opinion on embperl 2.0?
01:24 <****> EEEEEEEEEVIL.
01:24 <****> fwiles: go on then
01:24 <****> Embperl is evil?
01:24 <****> PHP is evil?
01:24 <****> Yes.
01:25 <****> php is evil for different reasons than simply embedding.
01:25 <****> PHP is getting namespaces
01:25 <****> yay?
01:25 <****> 'numeric', but no dice. Is this possibly a DBD::Pg issue?
01:25 <****> woo. We can code like it's 1990.
01:25 <****> It's always 1990 somewhere.
01:27 <****>do("SELECT col FROM tablez WHERE othercol = $var");
01:27 <****> among other things.
01:27 <****> I heard PHP was getting bind parameters.
01:27 <****> fwiles: smells odd.
01:27 <****> fwiles: I'd try upgrading DBD::Pg, yes
01:27 <****> jjore-w: this #perl sucks just as every other #perl at some point :)
01:28 <****> gumbybrain: no u
01:28 <****> no u.
01:28 <****> fwiles: since it sounds like 1.10 being bound as a float or something


Total 35 pages. You are browsing page 2/35.

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo