| |
| |
| |
|
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
Comments:
<0> cjeris: something like that <0> but actually he said "Because of your outspoken p***ion" <1> tag: no sense of aesthetics goes unpunished <2> hey, anyone ever try to build crypt::openssl::etc. on solaris? <2> ok... anyone ever see this when testing a perl module: fatal: relocation error <2> during make test of a crypto module? <3> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND <3> 18700 jmax 25 0 199m 196m 1544 R 99.1 19.6 3284:51 perl <4> re, what is the best way to create common functions for some of my programs? importing the code directly or using a module (what if I don't want to place the module to one of the standard system locations for them and want to use it only locally in this programs)? <5> thei0s: a module, and use lib; <5> use lib '/path/to/your/lib'; <4> imMute: 10x a lot, use lib '.'; was exactly what I wanted <3> um <3> . is already in @INC <3> no need to use lib it
<4> not in my @INC <3> eval: join " ", @INC; <6> sparkman: <3> eval: join (" ", @INC); <6> sparkman: <3> bah <3> eval: print join (" ", @INC); <6> sparkman: 1 <7> thei0s, no, it's "a lot" x 10; <7> eval: "a lot" x 10; <6> hawkaloogie: a lota lota lota lota lota lota lota lota lota lot <3> $ perl -e 'print (join " ", @INC), "\n"' <3> /etc/perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . <5> sparkman: not in all installs - thei0s, that means the current working directory - note taht your script might be called from a different directory <3> in every install i've ever worked with... <4> sparkman: @INC before everything: c:/Program Files/eclipse/plugins/org.epic.debug_0.2.0/ /usr/lib/perl5/5.8/cygwin /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8 <4> if I put the use lib '.'; anywhere in the code '.' is added <3> oh well win32 / cygwin don't count <8> thei0s - "." is almost always in @INC anyway <8> so that's almost pointless <8> Oh - but yeah, cygwin, who knows. :) <4> :) yeah, I indeed have a strange working enviroment configuration Win32+Cygwin+Eclipse <9> i have never used . in @INC <8> you've never cd'ed to the "lib/" directory to test something interactively with the debugger? <8> I do that all the time <8> cd lib; perl -MSome::Cl*** -deal <8> and then I can use Some::Cl***->new etc <10> perl is quite nifty: http://rafb.net/paste/results/uAf56x55.html <6> The paste uAf56x55 has been copied to http://erxz.com/pb/2600 <9> merlyn: i never got the hang of the perl debugger, i never had a hugely compelling reason to use it <9> a few print statements + sleep have always done it for me <8> I generally don't use the debugger for debugging <8> just for "[random statement]" and "x [random value]" <8> I don't know anything else. :) <8> it's an interactive shell. :) <9> hmm <9> i do that with zoidberg <8> the debugger preceded zoidberg by about... a decade. <9> though zoidberg has a few issues currently still <9> i know :) <8> and the debugger is everywhere perl is <8> zoidberg is not very accessible to me <9> CPAN! <9> though issues can come up from that one <9> esp if management is a bunch of vindictive ***holes and you are a contractor <11> To Beer or not to Beer??? hm.... <12> Is that even a question? <12> surely you have something in your fridge thats been there long enough to ferment <11> Shadda, ahha..... that IS true.. ==) I've just cleaned it up a bit =) <11> though <9> Shadda: yea but plum + bread + mold doesn't make a tasty drink, trust me <12> Mix it with some red bull, good to go <11> ^_^ <11> open until 10 o'clock.. sounds great <13> Does the LWP have some sort of proxy method? <3> yes _tcc <3> proxy <14> Hi <3> hi
<14> I'm so confused... <15> That definitely happens. <16> This is the hardest nick ever in history. <15> nice <14> I don't even know how to describe my problem... <17> I'd have to say that's definitely a problem we can't help you with :) <14> I need to access an array (or what should be an array) inside a data structure but I'm gettting "Not an ARRAY reference" when I try to access it <14> :) <15> DrForr: :) <18> How are you storing the array in the structure? <15> enhanced: Data::Dumper is your friend. <17> Also, perldoc perllol ; $a[0] = @foo; does not do what you think it should. <6> Also: Type 'perldoc perllol' in your shell or go to http://perldoc.perl.org/perllol.html <14> okay.. <17> Of course I'm taking some wild potshots, not having seen the code in question. <14> hmm let me past some stuff <14> err paste <3> perldoc perlref as well <6> Type 'perldoc perlref' in your shell or go to http://perldoc.perl.org/perlref.html <10> DrForr, duh, we want the length of @foo. <3> pastebin please <14> Sure of course <10> no pastebin <10> see topic <10> pastebin is ****s, try any other of the many paste sites <18> perlbot: paste <19> Paste your code and #perl will be able to view it: http://sial.org/pbot/perl http://erxz.com/pb <18> That should probably be rewritten in case anybody sees "Paste your code" and doesn't read the rest of the line. Heh. <10> Ciaran_H, :P <10> perlbot, paste <19> Paste your code to http://sial.org/pbot/perl or http://erxz.com/pb and #perl will be able to view ie <10> Ciaran_H? <18> Nice, except I use Firefox, not IE. ;p (iow: "ie" => "it" ;-)) <10> Ciaran_H, just fixed it :) <18> Cool. :D <18> Thanks. <10> perlbot is just factoid, can add change yourself :P <18> I was going to do it myself in a bit but I don't need to now. Heh. <18> I know. <18> I've done it before. <10> x / forget x / x is are the only things I know :( <20> "enhanced" at 66.93.219.2 pasted "Not an ARRAY reference" (50 lines, 934B) at http://sial.org/pbot/18872 <18> You've also got 'relearn x as y'. <18> enhanced: You don't bless $self and return it in your new sub, did you just leave that out? <14> Ciaran_H: I just left that out <17> keywords => $args{keywords} || [], <10> you'll also want to change the line at bottom... <10> @{$x->{keywords} <10> with another } <14> pstickne: Thanks! <14> One sec <10> enhanced, also see DrForr's post <14> thank you very muchj <14> I'm trying this now. <10> enhanced, while not required, due to autovivification, it's much cleaner. x86 would argue :) <17> Oh, didn't notice the rest of the post. <10> hehe <17> product_keywords => \@foo, # or [@foo], <10> DrForr, ooh, good call <17> And @$product->{keywords} => @{$product->{keywords}}; <14> You guys rock <14> IT WORKS!!! :) <14> You guys are just awesome. <14> Thank you very much. <21> Daveman: beer? <22> I'm looking for a script that moves all files in a directory to subdirs based on the first three letters. file aaa.jpg should go to ./a/a/a/ and peter01.jpg to ./p/e/t/ anyone here have one lying around? Or maybe give me pointers? <17> Use glob("*.jpg") or opendir/readdir/closedir to get filenames, split and grab the first three characters, use File::Copy or system "cp". <23> I was half way through typing the same thing :) <23> glob, split, File::Copy <24> if I have my $byte = "\0"; how can I print this binary? <3> pack <3> perldoc -f pack; perldoc -f unpack <6> Type 'perldoc -f unpack' in your shell or go to http://perldoc.perl.org/functions/unpack.html
Return to
#perl or Go to some related
logs:
#php yast2 hardware lock-up 10.1 noegnud ubuntu #fluxbox mssql subquery concat result debian serial change tty not permitted #debian #fedora #debian meaning of pollsa
|
|