| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Comments:
<0> thx <1> Juerd: thank you. <2> Anyone have experience running CPANPLUS in a non-root module-installation way? <2> I can't seem to convince the darn thing that I want man pages in ~/perl/man/man1 and not /usr/local/man/man1 <3> The other one like *** / gender that weirds me out is when people use the word "celibate" to mean "chaste". <4> sounds like i've been missing a fascinating conversation about perl <2> Not really <4> if i want to push a list into an array (not the items in that list), how do I do it? <4> for example, I extract a pair of strings from a string using a regex, and then I `push @array, ($1,$2);` <5> yrlnry, that reminds me of the one about the monk who was busy copying ancient biblical texts and realizes that he's copying from a copy of a copy of a copy (etc) and asks how often someone goes back to confirm that the current revisions don't have mistakes carrying forward. The middle-manager monk suggest that perhaps now would be a good time, so he goes down to the monestary basement and comes back after a few hours with a horrid <5> "it says CELEBRATE" <6> orinthe: push @array, [$1,$2] <6> orinthe: although your question isn't very clear <4> comes back with a horrid realisation: IRC has limits on the length of individual messages :P <5> HA HA
<4> khisanth, sorry <4> and, thanks <4> why the brackets? i'm not familiar with that usage at all <6> orinthe: that would give you an array of arrays <2> That's an anonymous array <6> [] creates an anonymous array reference <3> Wyleyrabbit: Funny. <4> which i have never heard of :( <2> There's always stuff in Perl I haven't heard of :) <3> orinthe: array elements can only be scalars. [...] makes a new array, and then gives you a single scalar that can be used as a handle to get the array back. The handle is called a reference. Then you push the reference into the main array. <4> how do i dereference it? <6> $array[$index][$otherindex] <4> now I get ARRAY(0xnumbers) wherever I expect strings <4> if I do something like `foreach (@array) { print join ',', $_;` I just get ARRAY(0xnumbers)ARRAY(0xnumbers)..... <7> perldoc perlreftut comes to mind <8> The perldoc for perlreftut - Perl references short introduction is at http://perldoc.perl.org/perlreftut.html <4> all right, stupid question then <9> resiak: I wonder who wrote prelreftut! <10> orinthe: maybe because in $_ you have a reference and not a "thing" <9> Err, perlreftut <2> print join ',', @$_; .... I think? <4> i've never dealt with references before <4> i was forgetting, I guess, that lists and arrays are not the same thing <10> orinthe: ok, therefore you must read perlreftut :) <7> revdiablo: I don't know, why? <2> Have any CPANPLUS gurus joined us yet? I'm getting an ulcer :) <6> pound_perl.summon( "Daveman" ); <1> i use CPANPLUS and install in non-root locations. but then again the perl i'm using is also non-root. <6> so it's basically like a root location anyway! <2> BinGOs-- That's exactly what I need help with <6> hrm and I need to install a MTA <4> thanks guys <2> Er, almost exactly :) <2> I have a base Perl installation and I am trying to layer non-root modules on top of it with CPANPLUS <1> well, my perl's are in ~/perl and ~/perldev and ~/perl588 <2> I can't seem to convince the darn thing that I want my man pages in ~/perl/man/man1 <1> i'll stfu now. <2> It's still trying to put them in /usr/local/man/man1 <11> what does it mean when a '\' is placed before an array or hash? (like my $a = \@arr;) <9> uncreative: It creates a reference to that array or hash <2> Please don't STFU, I'm desperate :) <9> uncreative: perldoc perlreftut is a nice tutorial on the subject <8> The perldoc for perlreftut - Perl references short introduction is at http://perldoc.perl.org/perlreftut.html <11> revdiablo, like a pointer? <9> uncreative: Kind of like a pointer, yeah. In spirit. =) <11> revdiablo, ok thanks very much <6> discHead: if you are using the correct perl binary this should be a non issue <1> discHead: have you tried all the CPAN tricks. I would have thought CPANPLUS would honour them. <11> revdiablo, so i guess its going to the first element in this case <9> uncreative: No, it creates a reference to the entire array <1> perlbot: life with cpan <12> Information pertaining to the Comprehensive Perl Archive Network (CPAN) can be found at http://sial.org/howto/perl/life-with-cpan/ <6> discHead: are you running ~/perl/bin/perl -MCPANPLUS -eshell ...? <9> uncreative: That reference can later be used to access any element that's in the array <11> so whats the point of having $a at all.. you could just have @arr (if its global, which in this case it is) <9> uncreative: Sometimes you need a reference. See perldoc perlreftut for details <8> The perldoc for perlreftut - Perl references short introduction is at http://perldoc.perl.org/perlreftut.html <9> Damn you buubot, stop that. <6> we can fix that with a +q :) <1> now now.
<11> revdiablo, alright i'll check it out - thanks <6> ok, +b :) <6> BinGOs: bots should not speak unless spoken to! <1> heh <6> like stupid fserve scripts ... <6> I don't want you goddamn files! <1> you aren't a big fan of donkey pr0n then <6> or the idiots that will ping you just because you typed something like typing <1> >:) <1> GumbyBRAIN: console Khisanth <13> BinGOs: Khisanth is not the jcap i used it :o. <2> I suppose it could be a buggy module... anyone feel like trying to install Text::RecordParser with CPANPLUS as non-root? :) <0> is there a function that parses all " to \" and all < to \< and so on?? <3> matahari: quotemeta() might do what you want. <14> s/["<]/\\$&/g <15> but the true way to do what you want might be to not do it <11> generally can you run perl in interactive mode? <6> discHead: sure <0> good night, thanks for all! <15> uncreative: the debugger is interactive, sort of <11> integral, hm <15> but if you just type 'perl' it will read source from STDIN anyway <16> GumbyBRAIN: stiff neck syndrome <13> simcop2387: Liberal use of the directory you can eat raw meat...same thing you can't bully people in this neck of the pegs and soapstone holes which were still far too many bosses syndrome. <15> Quick! Invert the pickle matrix! <2> xirtam elkcip eht <6> oO <6> Text::RecordParser is generating Malformed argument errors from Module::Build and Makefile.PL <15> Lynch 'em I say <1> Hey, DJ <2> Oh, good, I was hoping it wasn't just me <2> But I did find that if I went into the .cpanplus build dir and ran perl Makefile.PL / make / make install manually, it seemed to work out <2> (with LIB=~/perl) <2> It still didn't seem to give a rip about INSTALLMAN1DIR or INSTALLMAN3DIR, but I'm used to that from everything <6> there are some issues with doing that with things that use Module::Build <2> I still don't entirely trust cpanplus or Module::Build <2> Is there a setting in cpanplus akin to makemakerargs but for Module::Build? <17> print $TF, "degrees F is equal to ",$TC, " degrees C \n"; <17> why isnt $TF outputed on the same line as the rest <6> discHead: you didn't even try looking in the setting before asking! <6> it is unless you have a newline in $TF <17> i get $TF from a function <17> oh no <17> it does have a \n <2> Okay, makemakerflags, then :) <17> how do i remove it <6> discHead: you still didn't look <17> Khisanth: how can i remove the new line off my variable <18> PersianPower: perldoc -f chomp <8> The perldoc for chomp - is at http://perldoc.perl.org/functions/chomp.html <6> why do you have it there in the first place?! <17> cause i think when i get input from stdin i press enter after it <19> perldoc -fprint <19> avar: perldoc -fprint <19> perldoc perl <8> The perldoc for perl - is at http://perldoc.perl.org/perl.html <19> avar: perldoc -f print <8> The perldoc for print - is at http://perldoc.perl.org/functions/print.html <19> lame <17> when i chomp it it removes all but the first digit <17> oh got it, i put the chomp where i get my input from stdin <17> thanks <20> what do the sub _ ? <20> like sub _ { , is execute first in the startup? <6> uh don't do that <21> my @ebayitemnumbers=(); .. and in a loop i've got .. print "$item->{ItemID}\n"; push ( @ebayitemnumbers, $item->{ItemID} ); ... the print works, but for some reason when i my $ebayitems = join (",", @ebayitemnumbers ); print "$ebayitems\n"; .. nothing is printed <21> but if i do a test push ( @ebayitemnumbers, "666" ); the print works, it just prints that one push <21> ah, i was declaring my @ebayitemnumbers in a parent loop about 200 lines ago ;/ <6> use warnings; <21> i am <21> it should have picked that up <21> it picked it up when i moved something
Return to
#perl or Go to some related
logs:
mysql.hosts doesn't exist close source python pyc #css #php #fedora #gentoo mount windows partitions ubuntu generic error gentoo partimage illegal instruction #python #centos
|
|