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

Channels


#perl

02 November 2007


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

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

02:02 <****> _abc_: perldoc perl # look for Internals and C Language Interface
02:02 <****> perldoc perlguts
02:02 <****> Insolit: it means whatever you ran with system exited with status of 1
02:02 <****> thanks
02:02 <****> Khisanth: well seems i need to use qx to try to get more information
02:03 <****> if you want the output then you need qx
02:03 <****> i just want to understand what's wrong :)
02:04 <****> well that exit code looks like everything was fine
02:08 <****> hrm I just get "no form named blah" no matter what
02:09 <****> is there a better way to interact with webforms than WWW::Mechanize?
02:09 <****> What more do you want?
02:09 <****> Are you running the page against mech-dump?
02:09 <****> first time messing with it, and I'm at a bit of a loss
02:10 <****> none of the examples i tried seem to work
02:10 <****> OK, what are you trying to do?
02:10 <****> the examples could be out of date.
02:10 <****> idiotben: did you get the page first? :)
02:10 <****> they're how they worked at the time.
02:10 <****> LeoNerd your pointer was great. perlguts has the goods. but a hash seems to be hashed all over the place and made up of many bits on the heap. I want to mlock() it. Idea: what if I use a dbmopen on a hash where the 'file' is a variable and the lock that ? Comments ?
02:10 <****> http://www.ibm.com/developerworks/web/library/wa-perlsecure.html even that one verbatim
02:10 <****> idiotben's url is at http://xrl.us/76ag
02:10 <****> what are you trying to do idiotben ?
02:11 <****> specifically I'm
02:11 <****> _abc_: Oh.. that's tricky... the HV itself is allocated, and all the SVs themselves are allocated separately...
02:11 <****> Hrmph, I see shorten has decided to rejoin us :)
02:11 <****> I assume that my hash will not change after I lock it
02:11 <****> You can't just mlock() the lot
02:11 * CPAN upload: CatalystX-CRUD-0.05 by KARMAN
02:11 * CPAN upload: CatalystX-CRUD-Controller-RHTMLO-0.05 by KARMAN
02:11 * CPAN upload: CatalystX-CRUD-Model-RDBO-0.04 by KARMAN
02:11 <****> LeoNerd yes that's the trick. BUT dbmopen on a variable SHOULD put all this inside the variable, which is a scalar. So it should be the heap. Sort of. Could this work ?
02:11 <****> well my intent is to automate getting some stuff from a webapp for work, simple form with username/password and a search field
02:12 <****> has there ever been a form on www.cpan.org?
02:12 <****> Ok, so what have you tried?
02:12 <****> that example, the one from perldoc WWW::Mechanize as well
02:12 <****> _abc_: I'm not familiar with dbmopen, so I can't really comment
02:12 <****> OK, but try it on your specific site.
02:12 <****> my issue seems to be with "form_name"
02:12 <****> i have, same thing
02:12 <****> and yeah there's a form on search.cpan.org
02:13 <****> which is where that example references, via the follow_link method
02:13 <****> OK, so wait
02:13 <****> and that stuff work
02:13 <****> Show me what you code you have tried that can't find the form name.
02:13 <****> also the form is named "f" just like in the exampled
02:13 <****> Show me some code that's not working.
02:13 <****> the example in that link above
02:13 <****> no
02:14 <****> show me code YOU wrote that doesn't work
02:14 <****> its the same code
02:14 <****> ok, so paste it
02:14 <****> verbatim
02:14 <****> http://sial.org/pbot/perl
02:14 <****> and what happens when you run it?
02:15 <****> LeoNerd perldoc perltie fyi
02:15 <****> OK.. though I'm about ready to call bedtime, so I won't look now...
02:15 <****> idiotben: works fine here
02:16 <****> "idiotben" at 24.245.75.91 pasted "noobie error" (22 lines, 699B) at http://sial.org/pbot/28395
02:16 <****> hrm handy
02:17 <****> and it pretty much works that way no matter what
02:17 <****> change this line
02:17 <****>new();
02:17 <****> to
02:17 <****> 1);
02:17 <****> because you're not checking yoru return codes.
02:17 <****> uh
02:17 <****> http://search.cpan.org
02:17 <****> You don't know if the get() is passing.
02:17 <****> haha
02:17 <****> there ya go
02:18 <****> hrm
02:18 <****> 1 still holds.
02:18 <****> gotcha
02:18 <****> where did I see perl that ties a variable as a hash storage ? DBM_Something ?
02:18 <****> http://www.cpan.org
02:18 <****> url must be absolute eh
02:18 <****> o.k.
02:18 <****> right i switched it to that as a test
02:19 <****> well that is going to break things -_-
02:19 <****> : #!
02:19 <****> eitherway it doesn't work but at least i'm getting some output
02:19 <****> Khisanth: No, it should be search.capn.org
02:19 <****> :S guys how would you proceed if u needed to make a script that be ran by an http request, and that script had to move files from one place to another?
02:20 <****> I would use the rename() command
02:20 <****> Andy_: how the heck is it going to follow the link on line 11?
02:20 <****> I can't make this work because of permissions :S
02:20 <****> !sn???d
02:20 <****> seems to want a full url
02:20 <****> Andy_: what's that?
02:20 <****> like somehost.org/index.html
02:20 <****> Insolit: Are you using Perl?
02:20 <****> or some such
02:20 <****> Andy_: the script is in perl
02:20 <****> Insolit: Then you are using Perl, right?
02:20 <****> the web interface that calls the perl script is php
02:21 <****> _abc_: DBM_File or DB_File ?
02:21 <****> Why don't you tell us what your problem is, pravus.
02:21 <****> Khisanth: Hm, using kill0 appears to work just the same, but I'm getting the same problem.
02:21 <****> http://pastebin.com/d30b179cb
02:21 <****> puff: The paste d30b179cb has been copied to http://erxz.com/pb/5084


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

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo