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

Channels


#perl

08 November 2007


Total 27 pages. You are browsing page 3/27.

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

01:54 <****> well, i need to send some other data, not to get oline but opermask on connect
01:54 <****> like: /server some.server.foo port serverpass:someoper:somepassword
01:55 <****> ? iirc, when you /oper, you get your oper mask
01:55 <****> in bahamut ircd you must use this on connect
01:56 <****> afaik, all that /server comand is doing is specifying the server, port, server password, oper name and oper password
01:56 <****> this is for opermask. to get oper status you do /oper user pass
01:56 * CPAN upload: Sys-Syslog-0.22 (+++ ) by SAPER
01:58 <****> anyway, thank you for the help
01:58 <****> bye
01:58 <****> fooing: are these bahamut-specific commands?
01:58 <****> bah
01:59 <****> "why doesn't /^\Q$var\E$/ work?" "just use $_ eq $var"
01:59 <****> because they aren't the same
01:59 <****> How are they different?
02:00 <****> $ will match before a \n
02:01 <****> so $_ could have a trailing \n and it would still match
02:02 <****> also, i doubt you could easily guarantee that a given regex maps to a particular op
02:02 <****> eval: $_="foo\n";$k="foo"; /^\Q$k\E$/
02:02 <****> dkr: 1
02:02 <****> eval: $_="foo\n";$k="foo"; /^\Q$k\E\z/
02:02 <****> pravus: ''
02:03 <****> pravus: thanks for explanation. I was the one that gave the eq solution, but had no idea why the regex didn't work, :)
02:03 <****> (programmer who did it thought you had to use regex for first grep arg)
02:03 <****>_< I got the /m screwed up and was wondering how they are not the same :)
02:04 <****> dkr: flog him with a dead tree version of the perldoc!
02:04 <****> wel, he's my boss. my coding tips have to be polite. :)
02:05 <****> dkr: then flog politely ;)
02:05 <****> Zoffix_: /m would add some oddness to it
02:07 <****> hey everybody :)
02:07 <****> utopia_: hello
02:15 <****> newbie : is there a way to pass an array into a subroutine as a local copy rather than a by ref copy which someone can [accidentally] change? eg i want to pass in an array into a sub where i can really stuff up the array but not have the original one changed. tanks
02:18 <****> iFatman: you can just pass the array itself, which will be converted into a list... foo( @array ); sub foo { my @stuff = @_; ... }
02:19 <****> iFatman: or if you want to pass an array reference, you can easily take a shallow copy: foo( [ @array ] ); sub foo { my $ref = shift; ... }
02:26 * CPAN upload: Crossfire-1.11 by MLEHMANN
02:30 <****> GumbyBRAIN, wee :D You are back!!!
02:30 <****> GumbyBRAIN, I love you!
02:30 <****> GumbyBRAIN, ... :'(
02:30 <****>:'[
02:31 <****> GumbyBRAIN, you broke my heart! I will never love again!
02:37 <****> hey guys, i'm trying to install something from cpan on my mac and i don't get the error... i'm running sudo perl -MCPAN -e 'install Term::ReadKey'
02:37 <****> and i get the error Can't locate object method "install" via package "Term::ReadKey" at -e line 1.
02:37 <****> anyone have any ideas?
02:38 <****> bitbang: perl -MCPAN -e 'install "Term::ReadKey"'
02:38 <****> bah, thanks :)
02:38 <****> Back to back you up to broadcast on the paper about public requests for help.
02:41 * CPAN upload: URI-Match-0.00001 by DMAKI
02:49 <****> Hello everybody
02:49 <****> Can anybody help?
02:49 <****> H0LE: ask a question
02:50 <****> I have a html file, I want to lowcase the href property of all the links, how can I do that?
02:50 <****>
02:50 <****> H0LE: Use a HTML parser.
02:50 <****> I mean an html parser.
02:51 <****>
02:51 <****> H0LE: Error in translation: Language "That" is not available
02:51 * pravus kicks buubot
02:52 <****> HOLE: you only want to lowercase the path but not the file?
02:52 <****> yes, the path
02:55 <****> 'a' and change the 'href' attribute
02:57 <****> HOLE: untested suggestion: $href =~ s{ \A (.+) / (.+?) \z }{\L$1\E/$2}xms;
02:57 <****> Thanks CArenas2, I will try that
02:58 <****> ur welcome
02:59 <****> CArenas2: if you have the href why wouldn't you just use lc?
02:59 <****> oh, he wants the dirname, but not the filename downcased
02:59 <****> Somni: exactly
03:00 <****>, lowercase the path...
03:00 <****> that's what I want
03:01 <****> H0LE: finding the hrefs is not something you should be doing manually, use an HTML parser
03:01 <****> HOLE: eg, a tag could span more than one line, which is why parser is better way
03:01 <****> #?
03:02 <****> your line-by-line parser fails
03:02 <****> s{(.+)/}{lc $1 . "/"}eg
03:02 <****>
03:02 <****>
03:02 <****> oh my god...
03:02 <****> It's more complex than I thought..
03:03 <****> H0LE: easily solved by using a proper parser like HTML::TreeBuilder
03:03 <****>look_down() for 'a' tags and do whatever you need.
03:04 <****> without having to worry about all that other nastiness
03:04 <****> pravus: do I have to intall some external module to use a HTML:TreeBuilder? I have only activeperl installed on my XP
03:04 <****> you have to install HTML::TreeBuilder
03:04 <****> H0LE: yes. doesn't activeperl have a module installer?
03:04 <****> afk
03:05 <****> HOLE: use 'ppm'
03:06 <****> ah, that's it
03:07 <****> I saw HTML:Parser, HTML:Tree module
03:08 <****> looks like html:tree is what i want
03:09 <****> H0LE: yes, looks like that's the distribution name
03:11 * CPAN upload: XML-Atom-Ext-OpenSearch-0.01 by BRICAS
03:23 <****> can anyone tell me which method to set the colors of the lines in lines chart of GD::Graph Module ? I RTFM and didnt find anything but only general info that color referneced should be from GD::Graph::Color module
03:27 <****> ooh past-tense RTFM. Classy.
03:28 <****> Should be "RTFMed"
03:29 <****> Heh, Read The Fucking Manual and Read The Fucking Manual.
03:29 <****> what are some valuable language sets to know
03:29 <****> Which one is past tense? :)
03:32 <****> hengha: Did you find the docs for GD::Graph::colours too? http://search.cpan.org/~bwarfield/GDGraph-1.44/Graph/colour.pm
03:32 <****> ferret's url is at http://xrl.us/9idc
03:56 * CPAN upload: WebService-Backlog-0.01_03 by YAMAMOTO
04:01 <****> If I have a time (in seconds from epoch) and a format string, is there a simple way to determine when the last change was in the formatted string?
04:03 <****> luke-jr: I'm not sure I understand your question.


Total 27 pages. You are browsing page 3/27.

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo