@# 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 36



Comments:

<0> ehm, yes?
<0> perldoc -f sort
<1> Type 'perldoc -f sort' in your shell or go to http://perldoc.perl.org/functions/sort.html
<2> I heart you
<3> i have a question about Net::SSH::Perl::Auth
<3> use Net::SSH::Perl::Auth;
<3> my $auth = Net::SSH::Perl::Auth->new('P***word', $ssh);
<3> print "Valid auth" if $auth->authenticate;
<4> DO NOT PASTE
<3> sorry
<5> There are pastebin links in the topic.
<6> Hello! I want to put some labels, contstants, etc. into a file "labels.pm" and say, "use labels;" but now that I turned on "use strict" it says, "Variable "@Month" is not imported at ..."
<6> what am I doing wrong?
<6> in labels.pm I have it defined as:
<6> our @Months = qw(Jan Feb Mar) ;
<7> CapnDan: perldoc Exporter



<1> CapnDan: Type 'perldoc Exporter' in your shell or go to http://perldoc.perl.org/Exporter.html
<8> anyone here know about a module that is like explorer? that is browsing through you filessytem
<9> "dale6" at 131.94.134.65 pasted "Net:SSH::Perl::Auth" (13 lines, 388B) at http://sial.org/pbot/18329
<10> is it possible to change or add a cookie on "runtime" i.e. when the website is already loaded?
<10> or do you need javascript for that?
<5> pippijn: You'll need javascript for that.
<10> okay
<3> what am I doing wrong?
<11> what is the purpose of the site-perl directory?
<12> site-local module installation
<11> actually, I've been trying to find documentation on the Perl directory structure but can't find anything. Anyone got some resources?
<11> integral: ok, so then, basically, all modules go there?
<12> no
<12> not ones that come with perl, or are vendor supplied.
<11> right
<11> but cpan installed modules, right?
<4> modules can go anywhere.
<12> unless you tell cpan to use the other dirs
<11> and then the i386-linux-thread... directory? That for threaded modules only?
<4> s/go/be/
<12> cloaked: no, it an arch specific dirs
<11> mkay
<12> I guess few people use something like a large AFS with all the binaries in AFS by arch :-/
<3> so anyone why im having issuess with Net::SSH:Perl::Auth?
<11> so modules can will usually get installed via cpan in site-perl and/or i386-arch directories?
<12> sure
<11> perfect.
<11> so, its somewhat safe for me to peruse those two directory spaces to see what modules I have installed?
<6> OK, that Exporter worked - is there a way for me to include all the things in the regular namespace? or should I just say, "require labels.pm" ???
<13> 8 bits it 1 byte, correct?
<11> cuz, I'm also checking the perllocal.pod file but it isn't 100% correct.
<11> dale6: no idea. what error you getting?
<14> ok i wrote what I needed to do, now how would i truncate the results to be mailed out?
<13> well I know I'm right, so I'll get to the question. Why does Programming perl say: $oreilly = v204.148.40.9; # Might be stored as bytes or utf8
<13> bytes OR utf8. What's the difference?
<3> im getting this error "Protocol error: got 2 in response to SSH_CMSG_AUTH_P***WORD"
<12> you shouldn't need to know how perl stores stuff internally.
<11> dale6: looks like you're trying to auth using the wrong protocol...
<13> integral: but that doesn't mean that I shouldn't want to know.
<11> did you tell Net::SSH to use protocol 2 and not 1?
<12> rutski89: unless you are planning on programming with XS or modifing perl's C source, you DO NOT NEED TO KNOW!
<12> in fact, it's likely to be detrimental to your use of utf8 to know
<13> integral: how so?
<12> because then people get confused about *which* UTF-8 someone means when they say UTF-8
<12> but if you don't know about one of them, you can't be :)
<13> lol, I sill
<14> so in my print function i can just use the mail function instead for Message => print "$File::Find::name\n";
<13> **i see
<14> would that work?
<12> blutkind: print?
<13> integral: but still, it is called UTF-8 right? So what's the difference between utf8 and bytes if utf8 can itself be represented in bytes?
<14> trying to get the results to send out to an email after it finds what it's looking for
<12> *sigh*
<12> perlbot, perlunitut
<15> Juerd's excellent Unicode mini-tutorial, see http://www.perlmonks.org/?node_id=551676
<16> The internet is a series of pipes, remixed!
<16> http://alternet.org/blogs/peek/38797/
<3> ah looks like that was the problem
<12> hrm, I guess it's a problem when people can take their money, tie a brick to it and drop it in the middle of the ocean



<17> why doesn't echo "asdf_123" | perl -e -F/_/ 'print $_ foreach(@F)' work?
<18> roods: you want -ne
<19> roods: -a
<18> actually, what you want: -naF/_/ -e '...'
<18> (Where the /'s are optional btw)
<17> thanks
<17> why do you need the - before the e why can't you just include that along with the other triggers?
<20> because the arguments after the -e are ***umed to be code to run, it's consuming the other switches trying it
<17> thanks
<17> why isn't =~ legal here echo "asdf_:123" | perl -naF/_/ -e 'print join("", @F)=~s/:/_/'
<20> because join doesn't return an lvalue
<21> using net:telnet how can i tell my script to resume the rest of the script if it can't find the host to connect to
<17> Somni: why not?
<20> why should it?
<17> to allow for it to be used as a temporary
<20> and when it's not?
<20> so, you s/// join's return value, now how do you print the result?
<20> you sure didn't do it there; s/// doesn't return the resulting string
<17> Somni: how would i do a replace from the return value of join?
<22> eval: @F = qw(the boy shot the sherrif); print (join("",@F))=~s/o/u/g;
<1> simcop2387: Error: Can't modify print in substitution (s///) at (eval 173) line 15, at EOF
<22> eval: @F = qw(the boy shot the sherrif); print( (join("",@F))=~s/o/u/g);
<1> simcop2387: Error: Can't modify join or string in substitution (s///) at (eval 173) line 15, near "s/o/u/g)"
<22> nope can't induce an lvalue
<20> roods: you wouldn't, ***ign it to a temporary, run the s///, print the temporary
<23> simcop2387: unary +
<23> is fun
<22> sili: thats what i forgot
<17> Somni: that seems silly.
<22> roods: why?
<20> roods: tough
<24> anyone know about getpwuid and win32?
<24> Net::SSH::Perl seems to run into that wall:(
<23> simcop2387: i shot the sheriff
<23> but i did not shoot the deputy :|
<24> what about his deputies?
<24> damnit
<25> can i statically compile a perl script with all dependent libraries built into one executable?
<23> jaek: maybe you want PAR?
<25> my dumb*** sys admin doesnt know how to install a module that i need
<25> sili, i'll look into that
<23> fire him
<25> lol, i'm just a slave laboror
<4> haha jaek
<4> jaek: cpan MODULE
<23> cpan -i Foo
<26> sili: hm?
<4> sili: you don't need the -i
<23> it installs module dependencies
<23> eggzeck: eat it.
<4> :P
<25> he thinks CPAN isnt a credible source
<4> He needs to be fired/
<25> he'd rather use RPMFORGE than CPAN
<25> and the RPMForge package is broken
<23> rpm... sigh
<23> rpm's are so inept
<25> if you google "rpm broken" you'd prolly find a bagillion results
<23> or a googleplex of them.
<23> googaplex*
<23> or something.i duno
<23> ah, it's googolplex
<24> socket's can't be non-blocking on win32?
<23> jdv79: something like that
<24> then, judging from skimming the code, Net::SSH::perl doesn't run on win32
<23> tias?
<24> which kinda defets the purpose one might think since on most *nix system's you have little need for a pure perl ssh implementation:)
<23> nah
<23> pure perl on linux


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

#math
debian unload pcspkr
mac mini dapper i386
tulip_stop_rxtx gentoo
#perl
#css
#linux
softdevice.o
postfix main.cnf
#lisp



Home  |  disclaimer  |  contact  |  submit quotes