| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Comments:
<0> i am sorry could you please help me? <1> bigwig: it is just a warning. for example, maybe you meant to type 'config::zest' instead of 'config::test'? the compiler can't read your mind. <0> i see <0> but most of my global variables i need in my script are used only once <0> should i turn off warnings? <0> MIME::Tools recommends leaving it on (-w) <1> are you just setting the value? <0> i am just using the value <0> only once <1> have you defined config::test somewhere? <0> in an other file <1> bigwig: like: $config::test = 'something'; ? <0> no <0> ok i show you my test scripts <0> this is config.pl: <1> don't paste
<0> package config; <0> $test = "hello"; <0> 1; <0> it was just 3 lines <1> use a paste bot <0> can i paste 3 more lines? <1> you could have just pasted all 6 to a paste bot <2> "bigwig" at 84.0.150.201 pasted "main.pl" (7 lines, 85B) at http://sial.org/pbot/16132 <2> "bigwig" at 84.0.150.201 pasted "config.pl" (4 lines, 52B) at http://sial.org/pbot/16133 <1> i'm not sure that that will do what you expect it to <0> why? then how to do it? <3> bigwig: are you doing this as a learning exercise or because you want a working config file? There are a ton of config file modules on CPAN if it's the latter <0> i want a working config file and am pretty upset because everything worked just like it was written in the manual except this one <4> so be glad everything up till now has worked. <1> ./topic <1> oops <5> Wadler++ <2> "pravus" at 72.18.171.64 pasted "bigwig - example" (16 lines, 174B) at http://sial.org/pbot/16134 <0> i must admit that MIME::Tools is the best thing i have ever found <6> bigwig: That works.. <0> thx all <0> i will do it with a hash <7> In a string that looks like this: $string = "blablabla<title>something</title>blablabla", how can i with regexp get the "something"-part into a $var? so that "print $var;" gives me "something"? <1> you can use an actual HTML parsing module <6> ditto <0> HTML::Parser rules <1> or XML if that's what you are parsing <7> Ahhw. So there is one already. <7> Thanks! I'll look into it. <7> :) <6> Yes.. <8> buu, where's sili? haven't seen him lately <6> He's in perlcafe <8> ah <5> ah, things get so much easier once the notation becomes obvious <4> notation .. or .. obfuscation? :) <5> probably :) <9> how would one change the name of the child when forking? <5> bloody logicians <5> rox: ***ign to $0, or exec. But the former depends on OS support and setup <9> integral: ***ign to argv[0] doesn't do the job <5> rox: I said $0, not argv[0]. <4> rox: this isn't C, it's perl. <5> And it doesn't ***ign to argv[0], it's got magic to call setproctitle or the equiv. <9> Botje: i know <5> $0 is *NOT* argv[0]. <5> clear? <10> it's argv[-1]! <10> ;) <9> ok, setproctitle was the thing i was looking for <5> gosh, basically it all boils down to replacing the function arrow by &, vel and not <5> that way you can build both the lazy and eager function arrows! <5> rox: you're really using C, huh? <5> rox: on linux, the non-portable way is writing to /proc/self/something <5> but setproctitle knows how to do that <9> integral: thank you very much for your kind help ... i wouldn't ask here if anybody on #c or #c++ knew the answer <5> *sigh* I'm kind when I'm caffeinated. <5> ah, these are "De Morgan duals". interesting. <9> integral: it's pretty much the reputation of this channel that ultimately made me give it a shot <5> ie, rules about and are dual to rules about or, so it's all about that swap in de morgan's law <5> rox: I must try harder!
<5> hmm, duals seem really hard to pin down in general <8> yo integral <5> hiya amnesiac <8> howdy? <11> is there a really quick way to add one array to another ? 1 liner I mean. say @Data=(1,2,3). I want the equivilant of @Data = @Data + @Data, so @Data would then equal (1,2,3,1,2,3) <5> it would help if I understood the difference between intuitionistic natural deduction and cl***ical sequent calculus. <12> foreach my $a (@Data) { push @Data, $a; } <5> umm, wtf? <5> push @Data, @Data; <12> That works? <5> read perldoc -f push, and look carefully at its spec. <13> The perldoc for push - is at http://perldoc.perl.org/functions/push.html <12> I was under the impression you can't push arrays <10> integral: no you have to iterate through the array <10> print out the results to paper <5> BOfH: you're not. <10> type them back in manually <14> hmm <10> only then can you merge the two <5> you're pushing the elements of the array as a list. <8> heh <8> send him to read about splice too <10> TMTOWTDI <11> dangit, that worked integral. didn't the first time I tried. must had a spell of stupid or something <5> ugh, notes. hatess <14> i wonder how fast exists() is for sets < 5 compared to a 'return 1 if $v == $array[$idx]' <5> stupid drifts like clouds of fog <12> Okay, I was under the impression an array != a list <5> sili: to the benchmark mobile! <8> sili, DProf it <10> BOfH: it's not a list <5> BOfH: yes, that's right, "as a list", there's a transformation that happens <11> yes. easy to forget to hold my breath <8> eerr Benchmark it <11> then remembering to breathe again, now thats the trick <14> amnesiac: arg <8> well you can always use B::Terse to look at the "inner" stuff! :) <14> (users who want software for solving np-hard problems)-- <14> sigh. <8> hahaha <8> silly <5> luckily that's what software's good at <8> np-complete! <5> I mean for anything simpler it's all trivial stuff like simplex <8> I like to solve hard stuff like "1+1" with Computers <8> everything else is so trivial <14> i think the silly part is that they want it to work in a sub-optimal way <15> why i have this error? http://pastebin.com/582615 <13> The paste 582615 has been moved to http://erxz.com/pb/687 <5> "why do I have this error?" <8> yeah, I think my english is better <4> you made an error. <8> and that's saying too much! <8> :) <5> Ajayu: set up your redcrap system better, or don't use deadrat <8> mandriva++ <8> *cough* <15> how can i setup my redcrap??? <5> I guess that joke's non-obvious then <8> go ahead, be more direct <15> :S <5> Ajayu: your operating system is ****, excrement, ****e, crap, etc <5> rat droppings too <15> why do you say me this?? <5> anyway your manual will tell you how to setup more repositories for package sources I suppose <6> Because we CAN <5> Ajayu: "say this to me", you need the dative. <5> "me" is the indirect object you see <5> TBH teaching english is trivial compared to the problems of redhat <15> bueno, entonces te hablare en mi idioma nativo, por que me sale este error, gran sabelotodo <6> amnesiac: Tell him he's a cock ****er in teh spanish. <5> are there actually any non-english #perl's apart from #perlfr?! <6> There's a perlfr?!
Return to
#perl or Go to some related
logs:
locate host URI::_foreign ati-gatos ebuild xorg-7 pron factor #css mad xine freebsd ports #ubuntu undernet creative-minds
secural islam shm perl ipc xfdesktop amarok crash
|
|