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

Channels


#perl

20 October 2007


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

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

00:31 <****> Sequence (?k...) not recognized in regex; marked by <-- HERE in m/(?k <-- HERE :x)/ ..... so I am suspicious of that being a Perl regexp.
00:33 <****> woggle: wow. found a typo in a perl module then.
00:34 <****> woggle: i swiped it from a perl module for dealing with CIDR ip ranges
00:34 <****> which one?
00:34 <****> mhall: Or some use statement changes how regexes behave drastically.
00:34 <****> woggle: use Regexp::Common qw(pattern clean no_defaults);
00:34 <****> woggle: is all i see in the pm file
00:34 <****> Somni: Regexp::Common::net::CIDR;
00:37 <****> my turn... I'm having a pain of a time with LWP
00:37 <****> specifically with the cookie_jar
00:37 <****> what it *seems* like is that I can't get a cookie to store in the cookie jar...
00:38 <****> mhall: Well, not surprisingly, that module seems to be missing tests..
00:39 <****> Does the module run?
00:39 <****> It's fairly hard to believe the author didn't try it at least once...
00:39 <****> woggle: d'oh. do you think they meant the same thing but with ?: not ?k: ?
00:40 <****> woggle: seems like the most reasonable guess to me
00:40 <****> I'm assuming that people here aren't familiar with using LWP?
00:40 * mhall tries.
00:40 <****> Maybe. I'm curious if (?k:...) is a PCRE extension or somesuch.
00:40 <****> the regex you see in the code is not used directly
00:40 <****> mistermocha: you're assuming wrong.
00:40 <****> I expect Regexp::Common does some filtering, and the (?:k) is some sort of placeholder
00:40 <****> mhall: Actually, no.
00:40 <****> iank: (sorry for the poke... was hoping to catch attention)
00:40 <****> mhall: Regexp::Common does make with (?k:. See its source or documentation.
00:41 <****> mistermocha: np. You might try pastebin'ing the code and/or describing the problem a little more specifically.
00:41 <****> I'm trying to run a script that will log into a particular website... just to pass the username & password
00:41 <****> pastebin ahoy then
00:43 <****> http://pastebin.ca/742925
00:43 <****> mistermocha: The paste 742925 has been copied to http://erxz.com/pb/4861
00:43 <****> ah, the (?k:) is used to indicate what to keep with the -keep flag
00:45 <****> this is my first attempt at using LWP... I'm using it to log into my work's ticketing system
00:45 <****> clearly, example.com is not it
00:47 <****> geo-rge, give me the code
00:49 <****> where can I find perl intro code examples?
00:49 <****> er... drifted away...
00:49 <****> http://pastebin.ca/742925
00:49 <****> mistermocha: The paste 742925 has been copied to http://erxz.com/pb/4862
00:50 <****> the script is making a fine request, but I don't see the cookie getting recorded anywhere
00:51 <****> uh... help?
00:51 <****> "Pitchin_uk" at 86.155.123.70 pasted "any ideas??" (1 line) at http://p3m.org/paste/fn/34
00:55 <****> RichiH: I'm here.. throw it on a pastebot.
00:56 <****> i have installed Module Term::ProgressBar but i'm still getting can't find module
00:56 <****> any ideas?
00:57 <****> You install it in the right place?
00:58 <****> Perl should tell you what's in @INC when it fails to locate the module. Is Term::ProgressBar in one of those places?
00:58 <****> how do i check
00:59 <****> Perl should tell you what's in @INC when it fails to locate the module.
00:59 <****> So look there.
00:59 <****> (I mean, it clearly isn't in there, if your perl is still failing to find it)
01:00 <****> sorry what i mean is whats @INC
01:01 <****> on the make test it looked like it failed some test
01:01 <****> Oh. Then it's /not/ installed.
01:02 <****> yeah sorry - i just scanned back up the screen. shall i pastebot the results
01:02 <****> Sure. I've gotta go afk though, hopefully someone'll jump in for me.
01:03 * sparc is away, auto-gone [tv/lp]
01:03 <****> sparc: Turn that off.
01:04 <****> "Pitchin_uk" at 86.155.123.70 pasted "any ideas??" (90 lines) at http://p3m.org/paste/fn/35
01:04 <****> cheer for your help
01:04 <****> cheers even
01:04 <****> hopefully that pastebot makes sense to someone
01:05 <****> buu: http://erxz.com/pb/4864
01:07 <****> Scary.
01:09 <****> Pitchin_uk: you are lacking prerequisites, namely Class::MethodMaker
01:09 <****> Pitchin_uk: install that, then either read the installation instructions or run the install in the CPAN shell so it can follow prereqs for you
01:11 <****> is there anything tricky about the $self variable in a method?
01:11 <****> it's the object the method was called on, usually
01:11 <****> I don't know what qualifies as tricky
01:11 <****>{key};" does not work
01:12 <****> somni: yeah, I realized how bad my question was after I wrote it
01:12 <****> how do i run in the CPAN shell?
01:12 <****> Pitchin_uk: `cpan` or `perl -MCPAN -e shell`
01:12 <****> felzix: "does not work" is rather vague
01:12 <****> or
01:12 <****> the really odd part is that I am calling the offending method from within another method of the same object
01:13 <****> perl -MCPAN -e 'install Net::DNS' for example.
01:13 <****> the end result is supposed to be an array reference which I then foreach over
01:14 <****> it looks to me like the hash is not accessible from the second method
01:15 <****> felzix: perhaps instead of giving us conjecture on what your problem might be, you could tell us the symptoms, including any error messages
01:16 <****> somni: no error messages. The result is just the same as if I were trying to usr a non-existing hash key.
01:16 <****> s/usr/use/
01:17 <****> the method where this code is in is called by another method of the same object
01:17 <****> are you using warnings and using strict? what is the result, in specific terms?
01:17 <****> you get undef?
01:18 <****> the result is that the foreach loop is just passed over
01:18 <****> .. the foreach loop, which you failed to mention
01:18 <****> sorry
01:18 <****> show your code, I'm tired of pulling teeth and guessing
01:18 <****> perlbot, paste
01:18 <****> Paste your code to http://sial.org/pbot/perl http://erxz.com/pb or http://p3m.org/paste/fn/perl and #Perl will be able to view it.
01:18 <****> ok
01:21 <****> Somni - punch him in the face, teeth come out much easier and faster that way
01:21 <****> oh wait, did I type that out loud
01:21 <****> type what out loud?
01:21 <****> salutations all
01:22 <****> "felzix" at 204.16.153.50 pasted "sub functi { my $self = shift;" (7 lines, 134B) at http://sial.org/pbot/28128
01:22 <****> Hello friends!
01:22 <****> felzix: so, basically, the array is empty; why is this something you didn't expect?
01:23 <****> because when I run that code in the method that calls that method, the array is not empty
01:23 <****> and is this truly your existing code?


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

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo