@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35



Comments:

<0> 'have'?
<1> It's doing the same thing, but with an anonymous hash.
<2> samu: not really, site_perl is for stuff installed locally and vendor_perl if a vendor wants to use it...
<3> yrlnry, but it doesn't work?
<1> It does.
<3> it doesn't do anything, it's like there is no hash
<4> yrlnry: it only works if $s->pages returns a hashref
<1> No. @keys = keys %{ $s->pages } works when @s->pages returns a hash.
<1> Oh, geez.
<1> I'm totally wrong. I was thinking of %{ {$s->pages} }.
<1> Sorry.
<4> right
<3> yeah, that works
<4> which *makes* a hash ref only to de-ref it immediately :)
<1> Yeah, I forgot that perl would take the curly braces as delimiters of the % operator, rather than as a hash constructor.
<1> @keys = do { my %k = $s->pages; keys %k };



<5> hi.
<6> why not: keys %{+{ ... }} ?
<1> why not, indeed.
<1> I hate unary plus. It must be stampped out.
<6> well, is it even needed in that instance?
<4> it's not, no.
<6> eval: keys %{{ @INC }}
<7> japhy: Return: 0
<6> eval: keys %{{ qw(a b c d e f) }}
<7> japhy: Return: 3
<6> perigrin: didn't think so.
<6> I seem to remember not using it.
<1> eval: join " ", keys %{{ qw(1 2 3 4 5 6 7 8) }};
<7> yrlnry: Return: 1 3 7 5
<4> btw you meant %INC instead of @INC
<6> perigrin: yeah, I know ;)
<6> I was crossing %INC and @INC and @ISA in my head
<4> We need %ISA!
<4> er wait ....
<6> but the bot probably has an empty %INC also.
<6> eval: \%INC
<7> japhy: Return: {'Net/DNS/RR/NS.pm' => '/usr/local/lib/perl/5.8.7/Net/DNS/RR/NS.pm','norris.pm' => 'norris.pm','POE/Resource/Statistics.pm' => '/usr/local/share/perl/5.8.7/POE/Resource/Statistics.pm','
<6> eval: \@INC
<7> japhy: Return: []
<6> oh, ok, so it doesn't.
<0> Hmm. Is it a bug if code that doesn't make sense outputs warnings that don't make sense? :/
<6> anyway, time for lunch/dinner
<4> can't have an empty %INC ... otherwise no code would have been loaded...
<6> perigrin: it could have emptied it manually
<8> how to get more debug output out of perl ?
<6> perigrin: so that users can't see what has been loaded.
<6> perigrin: from the bot's perspective of a safe and clean sandbox, it's not unthinkable
<6> stuv: use warnings; use diagnostics;
<6> stuv: what kind of debugging messages do you want to see?
<4> hmm possibly, though an eval bot gives me the willies to begin with.
<6> stuv: perl also has a debugger and there are various debugging "hooks" you can attach when your program is run
<8> japhy: if have just a very small ftp script that does't do anything, it worked before i leave the table
<6> Ani-_: you've found an anomoly
<6> anomaly?
<9> anomaly.
<8> japhy: i just want to see some debug messages what is going on... because i see just a blank screen
<10> well i've got alot of work ahead of me, i've got to create code to cleanup and properly manage a widgeting system and a system of dialog windows related to it
<0> Code that makes absolutly no sense: perl -wle 'sub s1 { return (0 .. 9) };keys %{ s1() };' The warning it outputs: Use of uninitialized value in range (or flip) at -e line 1. Use of uninitialized value in range (or flop) at -e line 1.
<6> stuv: ah. well, I'd suggest making sure you program is handling errors -- that is, if it fails to connect to the FTP server, you should make it say something about it.
<6> Ani-_: sounds like s1() is getting called in scalar context.
<11> umm.. is it trying to dreference a list to a hash?
<6> Ani-_: and of course it is. the %{...} operator expects a scalar, a hashref.
<0> Duh. Ofcourse. $. is undefined.
<9> Ani-_: need more {} :)
<10> GumbyBRAIN: widget
<6> Ani-_: yup :)
<12> Widget is a ****ing idiot.
<6> Ani-_: sorry to de-bug your code ;)
<13> GumbyBRAIN, ****ing idiot
<12> That would be an idiot.
<13> wow.
<6> stuv: you should probably pastebot your code so we can look at it if 'use warnings' isn't helping you figure out the problem and you're own diagnostic messages aren't doing it either.
<6> but I am REALLY REALLY hungry and need to eat
<14> GumbyBRAIN: uber_spaced said wow.



<6> so I'm outta here.
<12> Wow, i'll have to muck about with were the sun, and his face was as the answer is "uh, um, uh... We stand by that you said.
<6> later, folks.
<0> Should have realised it when I saw flip/flop... But I kept thinking of a range... :(
<13> laters, japhy!
<8> japhy: $ftp = Net::FTP->new(server, Timeout=>240) or die $ftp->messages;
<15> "Zaphar_work" at 12.206.248.152 pasted "coderef problem" (35 lines, 1K) at http://sial.org/pbot/17759
<16> Hi I am looking for good perl documentation like functions and what not that I can download, cause for some reason perldoc won't work correctly on my machine can anyone give me any suggestions/
<17> I've got a module that that has an object method which returns a coderef
<18> simcop2387, did you get my message?
<2> fancypantzmckee: search.cpan.org, perl.com, www.perl.org, www.perlmonks.org are good places to start
<6> Zaphar_work: you want: @args = @_[2 .. $#_]
<6> not '$_[2 .. $#_]'
<2> fancypantzmckee: oh and perldoc.perl.org
<16> ides: right, but I am looking for somethnig to download, like maybe one big tar file.
<17> japhy: Doh!!!!
<17> I knew that why didn't I see it?
<6> I'm REALLY leaving now. I swear.
<2> fancypantzmckee: doesn't exist to my knowledge, best to try and get perldoc working...
<16> ides: ahh nice perldoc.perl.org has just what I am looking for
<16> ides: thank you very much.
<0> japhy? Are you still here?
<6> Ani-_: NO!
<0> Good!
<16> ides: ya perldoc isnt working because it claims I need certain modules that I am missing, but even when I install this modules I still get the same error message, I even tried removing perl and reinstalling it but that did not help.
<8> japhy: this is the only oupupt i get: Opening ASCII mode data connection for /bin/ls
<0> stuv: can you try with: $ftp = Net::FTP->new(server, Timeout=>240, P***ive=>1) ?
<8> k
<8> Ani-_: the problem must be somewhere after changing the directory and when getting the filelist with @files = $fto->dir or die $ftp->message;
<19> Hi stuv
<19> stuv: are you stu7?
<8> s/$fto/$ftp->dir/
<8> hi
<8> rindolf: a bit destroyed - was the hole day on my lovely skateboard
<19> stuv: I see.
<0> stuv: that makes sense... the changing of the directory should (AFAIK) happen on the command port/connection. Getting the list of files should happen on the data port/connection. So $ftp->dir might be trying to open a connection to the server. (or the server to the client.) Which may or may not be blocked by a firewall.
<19> stuv: a bit "exhausted"
<19> And whole
<19> And "whole"
<20> "stuv" at 66.180.175.30 pasted "ftp mini upload script" (42 lines) at http://erxz.com/pb/1555
<0> stuv: can you look at the network traffic that is happening? As in do you have tcpdump or similar?
<8> Ani-_: the script worked allread on my computer ... i can also connect with normal ftp client
<8> Ani-_: ethereal would be enouth :P
<8> ?
<0> Yes.
<19> stuv: ethereal is called wireshark now. Trademark probs.
<8> rindolf: good to know
<19> "A rose under any other name..."
<0> stuv: you might want to check your ftp client config aswell... is it set to P***ive mode or to Active mode?
<0> stuv: another thing you can try: Net::FTP->new($ftp_host, Timeout=>60, P***ive=>1, Debug=>1)
<8> lol
<8> now it works ?
<8> just because of setting debug to 1 ,... lol
<8> now it's working =D
<0> Try removing it?
<8> lol
<8> also works without now ...
<8> what could make such strange behavious ?
<0> Try removing the P***ive?
<0> stuv: a firewall somewhere?
<8> iptables i think
<8> but the script worked (also with no p***ive), that's a bit strange to me
<0> To what server are you connecting? One controlled by you?
<8> now without p***ive it is the same like before !
<21> Hello. What is the easiest way to convert a URL into a rendered image (***uming URL points to an HTML resource)? This needs to happen without human interaction. The rest of the code is in Perl, but external programs would be OK. I tried ``links -g'' but can't get it to dump the rendered page into a graphics file.
<22> HTML doesn't have "one rendering"
<22> it's not PDF
<8> Ani-_: my payed webspace
<22> you have to say "I want this to look like mozilla renders it at this resolution with that particualr default font size" etc
<23> "The Name of the Rose" is an interesting movie. Never could understand what that phrase meant until I watched the documentary on the DVD.
<21> merlyn, I know. Anything reasonably resembling a common graphical browser would suffice.
<0> stuv: then your PC/firewall/router/whatever is blocking incoming connections to the data port being opened by Net::FTP. If you use P***ive mode then the server opens a second port. If you use Active mode your PC opens a port.
<24> senex: maybe look at html2pdf ?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #perl
or
Go to some related logs:

compiz.ed3n yast
fluxbox keys RowSmartPlacement
partman apt-get ubuntu
#fedora
mysql workbench build debian
php6 zend_language_parser.h: No such file or directory
#suse
#ldap
amavis defer retry time not reached for any host
split 700mb coreutils cat



Home  |  disclaimer  |  contact  |  submit quotes