#perl
02 October 2007
Total 34 pages. You are browsing page 2/34.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
00:49 <****> hobbs I have -w and I get no warnings. I'll try strict later.
00:49 <****> heh
00:50 <****> -W or -w ?
00:51 <****> perl -w
00:51 <****> #!.../perl -w
00:51 <****> Any reason not to use lexical warnings?
00:52 <****> I am not used to them yet so when I turn them on all hell breaks loose. I wil have to start to work with them
00:52 * apeiron boggles
00:52 <****> But not now. One thing at a time. This is not a learning problem, I have a problem to solve
00:52 <****> -w works, but lexical warnings don't?
00:52 <****> hi
00:53 <****> lexicals with strict throw just about each warning I have ever seen
00:53 <****> anyone know how to write xchat script?
00:53 <****> cheeseboy, Probably.
00:53 <****> s/each/every/
00:53 <****> anyone here
00:54 <****> Maybe.
00:54 * apeiron personally doesn't, being an irssi user.
00:54 <****> irssi++
00:55 <****> cheeseboy: http://xchat.org/cgi-bin/script_list.pl/
00:55 <****> by the way this is off topic but there is an interesting SCHEME implementation called CHICKEN. I haven't seen it before. Maybe someone will find this useful.
00:55 <****> I found it while wrestling with some plugins yesterday
00:59 <****> goodnight
01:15 <****> eval: chr 32
01:15 <****> Jmax: ' '
01:15 <****> what is that? vtab?
01:15 <****> eval: chr 20
01:15 <****> Jmax: ''
01:15 <****> ohhhhh
01:15 <****>{$k}{"key"}{$a}) = ["this",$that];
01:16 <****> no
01:16 <****> @{} = ...
01:16 <****> ?
01:16 <****> remove parens
01:16 <****> ok. but this stores a persistent data yes ?
01:16 <****> well not sure if the parents make a difference with an arrayref
01:16 <****> it persists until it is deleted
01:17 <****> does the reference keep it alive ?
01:17 <****> no, perl does
01:17 <****> either by you, the modules you are using, or by GC
01:17 <****> that was a stupid question. sorry.
01:20 <****> GumbyBRAIN: use IForgot;
01:20 <****> How the hell you can use to read from filehandles.
01:20 <****> If a function returns an array how do I assign it above. = (foo(args,...)); ?
01:20 <****> @{} = ();
01:21 <****> and that assigns a reference or a live object. i.e. does its link count count in the keep alive ?
01:24 <****> perldoc perldsc <- covers AoA, HoA, HoH, etc.
01:25 <****> ok
01:31 <****> is there some way to copy an array(A) to another array(B) whilst applying a certain method to each member of A?
01:31 <****> map
01:32 <****> and push
01:32 <****> if you want to append the new elements
01:32 <****> @b = map { foo($_}; } @a;
01:32 <****> cool
01:32 <****> that'll apply foo to all elements of @a, and put the results in @b
01:32 <****> functional programming ftw
01:32 <****> actually id be calling a member function of the element in a
01:33 <****> ok
01:33 <****> $_ in the map function is the element of a
01:33 <****> so you can do whatever to it
01:33 <****>as_HTML; } @a
01:33 <****> would that be legal?
01:33 <****> yup
01:33 <****> sweet as
01:33 <****> slick, huh?
01:33 <****> yes thanks very much
01:33 <****> btw what is that a language feature?
01:34 <****> pardon?
01:34 <****> where in perldoc would i find that?
01:34 <****> perlfunc
01:34 <****> ty
01:34 <****> sure thing
01:42 <****> Chris62vw, Was just looking through scrollback... you want /names -c
01:47 <****> gumbybrain: blargh
01:47 <****> No, just wondering if list::moreutils' doesn't reference the original environment doesn't it? So ssh somehost '(echo blargh; echo blargh) | passwd someuser' won't work will do this.
01:48 <****> GumbyBRAIN: I am shitting fire
01:48 <****> I am in the fire for me.
01:48 <****> thanks
01:49 <****> Wow GumbyBRAIN asked a more meaningfull questions then some of the fly ins.
01:58 <****> argh, stop crashing you POS
02:02 <****> Caelum: that's just the EMP from Walmart using their nukes.
02:02 <****> infi: heh
02:05 <****> infi
02:08 <****> Who wants to proofread stuff?
02:08 <****> http://petdance.com/random/rdice.html
02:08 <****> what is it
02:09 <****> please, why this produces a runaway multi-line error? $var =~ s/\Q$var[0]\E/"s".(?($1)"$2":"")/e;
02:13 * platypus doesn't know "What are you trying to do?"
02:14 <****> deparse: s/\Q$var[0]\E/"s".(?($1)"$2":"")/e;
02:14 <****> platypus: Error: 23127: Search pattern not terminated or ternary operator parsed as search pattern at (eval 213) line 1.
02:14 <****> deparse: s/\Q$var[0]\E//e;
02:14 <****> platypus: s/\Q$var[0]\E/();/e;
02:15 <****> deparse: "s".(?($1)"$2":"")
02:15 <****> platypus: Error: 23167: Search pattern not terminated or ternary operator parsed as search pattern at (eval 213) line 1.
02:15 <****> platypus: er...
02:15 <****> the problem is the if op
02:15 <****> anabain: the problem is that the code is completely incoherent
02:16 <****> besides the fact that that's bad syntax, it refers to a $1 that can't possibly exist :)
02:16 <****> no, try capturing something, and you have the same result
02:16 <****> anabain: like I said it refers to a $1 that doesn't exist _and_ it's completely broken code
Total 34 pages. You are browsing page 2/34.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
