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

Channels


#perl

14 October 2007


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

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

03:16 <****> thanks
03:16 <****> * spreads scalar context all around it
03:17 <****> as do other binary and unary operators
03:17 <****> are there any operators that are both scalar and array context depending on the what's on what side?
03:17 <****> a tad esoteric, ... but I'm curious
03:17 <****> jettero: any other in addition to what?
03:17 <****> probably because I should be working on something
03:17 <****> x :)
03:17 <****> I don't mean any other, I mean *any* ... could there even bee such a thing?
03:18 <****> x!
03:18 <****> x?
03:18 <****> that's an operator ;)
03:18 <****> yeah, I know it's an operator...
03:18 <****> eval: ["x" x 10, ("x") x 10]
03:18 <****> Somni: ['xxxxxxxxxx','x','x','x','x','x','x','x','x','x','x']
03:18 <****> It works in array context?
03:18 <****> oh, neat
03:18 <****> Khisanth++
03:18 <****> there is no array context
03:18 <****> yeah, I mean list context, sorry
03:19 <****> I screw that up fairly frequently.
03:19 <****> xb
03:19 <****> other than functions I can't think of anything else that is variable in its imposition of context
03:19 <****> x is an interesting operator then
03:20 <****> In goofbag context it return the captain's underpants.
03:20 <****> are there others that are more interesting for some other reason?
03:21 <****> comma (or has that been mentioned)
03:21 <****> does the "*" literally "spread" context over the LHS and RHS?
03:21 <****> or is it something more subtle?
03:22 <****> anno-: I never even remember what comma does without reading perlop
03:22 <****> er... besides the obvious
03:22 <****> evaluate LHS and RHS in scalar context.
03:22 <****> eval: sub context { print wantarray ? "list" : "scalar"; 1 } context() * context()
03:22 <****> Somni: scalarscalar1
03:22 <****> I don't know how to be more clear
03:23 <****> fair enough
03:23 <****> ? : is an operator doesn't impose a context on its THEN and ELSE arguments.
03:23 <****> it imposes context on its operands, I guess you could call that spreading it around
03:23 * apeiron spreads goofbag context around #perl.
03:23 <****> I've got a problem with some 'nested' Mason handlers, and was wondering if this was the best place to ask... see paste: http://pastebin.dp.cx/9, http://pastebin.dp.cx/10, and http://pastebin.dp.cx/11
03:23 <****> ? : does not impose a particular context
03:23 <****> nor does =, come to think of it
03:24 <****> it does for the first operand
03:24 <****> anno-: which?
03:24 <****> ?:
03:24 <****> yeah, doesn't it spread scalar to the left of the ?
03:24 <****> sure, I just meant the TTHEN and ELSE bits, not the IF
03:24 <****> dp: those commas really don't help!
03:25 <****> Khisanth: eh?
03:25 <****> in other news, Python apparently doesn't allow assignment in 'if' conditions
03:25 <****> this is getting more and more annoying
03:25 <****> so no if(my $foo = bar()) { }?
03:25 <****> Somni: Here you go, WoW but you get some exercise! http://www.spikedhumor.com/articles/129275/Lightning_Bolt.html
03:25 <****> Yaakov's url is at http://xrl.us/7dbj
03:26 <****> I tried python for a couple days... I was irritated almost the whole time and finally quit when I realized there were only two scopes: global and object
03:26 <****> Khisanth: nope
03:26 <****> dp: and the links give empty pages!
03:26 <****> I also have to pre-compile all my regexes manually
03:26 <****> they're shoving me towards a pre-built parser generator, I can feel it
03:27 <****> jettero: not quite true.
03:27 <****> Khisanth: interesting... they were there earlier.. 1 sec
03:27 <****> Yaakov: disturbing
03:27 <****> I guess my $foo = bar(); if ($foo) isn't too bad except for increasing the scope of $foo but then I think python has some annoying scoping rules too
03:27 <****> Yes, almost like some parts of YAPC.
03:28 <****> dp: that side bar also indicates the most recent post is 7
03:28 <****> Khisanth: except I'm trying to do the equivalent of if (@match = $line =~ /.../) elsif (@match = $line =~ /.../) { ...
03:28 <****> Khisanth: and there's no implicit match variable, I have to assign it to be able to get groups out
03:29 <****> jettero: 3 namespaces
03:29 <****> local (function), module, and global
03:30 <****> I think I'm going to either do if (@match = $line =~ /.../) { ...; last } and so on
03:30 <****> A pox on the windows command shell.
03:30 <****> Khisanth: http://pastebin.dp.cx/13 through 16
03:30 <****> does anyone else get errors trying to install the PHP module from cpan?
03:31 <****> or shove all of my regexes into a list, iterate over that, then stop when I hit a match; then, have a seperate if/elsif for figuring out which regex matched
03:31 <****> ew73: Wh do you want to have a diseased comannd shell?
03:31 <****> [domon]: you are assuming there is someone else that would actually want that module
03:31 <****> bah, afk, need break
03:31 <****> go kill some orcs!
03:33 <****> Yaakov: I hope mutation might set in and get me at least one useful feature.
03:35 <****> dp: so what is your actual question?
03:35 <****> Khisanth: why the beginning portion of my page output gets stripped off when I get to /images/offset/1, even though it's the same autohandler as /images/
03:38 <****> bpalmer: I realize that my python comments couldn't possibly have any merit, since I spent 40 hours total learning it...
03:38 <****> but I think we can agree the python scopes are kinda lacking
03:39 <****> seems to be by design though
03:39 <****> there's probably some philosophical reason
03:39 <****> Scopes are hard, let's go shopping
03:40 <****> dp: I would check what the generated code is doing
03:41 <****> how do you mean?
03:42 * CPAN upload: Cache-Funky-0.06 by TOMYHERO
03:43 <****> Dave2, You seem to be spendingan inordinate amount of time fixing xchat.
03:44 <****> I know. It's most annoying.
03:44 <****> When I fire up xchat, seemingly if there's not enough upstream or downstream or something, a bunch of channel tabs don't get opened.
03:44 <****> since I'm in 64 channels on freenode...
03:45 <****> They must all be +s 'cause I only see you on three. =\
03:49 <****> what is the command to see all installed modules?
03:51 <****> apeiron, more like I'm +i
03:51 <****> Dave2, Ahh.
03:51 <****> (It's quite a good idea when you're staff, really, as was demonstrated to me earlier today)
03:53 <****> ew73: What are you trying to do?
03:56 <****> HI EW73


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

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo