| |
| |
| |
|
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
Comments:
<0> s/Fuze/Fuse <1> jablko: perhaps you could provide a more useful description of the problem? :) <0> http://search.cpan.org/src/DPAVLIN/Fuse-0.07/Fuse.xs <0> hobbs: i implement getxattr which should return the value of the named extended attribute <0> if i return a numeric value (12345) the Fuse module mistakes it for an error code <0> returning a string value works ("hello") <0> returning "12345" also works <0> but 'course i'm getting the xattr values from another module <1> jablko: gotcha. That's really stupid XS. It should _not_ care like that <0> so i need to convert 12345 to "12345" <0> hobbs: fair 'nuff <0> : ) <1> jablko: but you should be able to set the "is a string" flag on anything by doing $thing="$thing" <0> hobbs: ok <0> i'll fiddle with it <1> jablko: and then don't do anything that modifies it "as a number" after that point, or pOK will get cleared
<0> hobbs: there's no function str($var)? <1> jablko: no, Perl doesn't work like that <0> ($var is morcomplicated) <2> jablko: Perl typing is nice like that. <0> "$node->name" didn'e work <0> $var = $node->name; <0> return "$var" <0> works <0> but there's no "nicer" way? <1> jablko: you don't tell scalars to set their type to anything, and you don't ask them what type they are. You just _use_ them as a given type and let the appropriate conversion happen <0> ok <3> $var = '' . $node->name; <1> jablko: which is why that XS code in Fuse is broken. It's causing completely different behavior for numbers than for strings, not doing a conversion <0> tybalt89: rad - thanks! <1> jablko: it's just wrong wrong wrong complain to the author :) <0> hobbs: will do <0> yeah - it's inconsistent with the module's other methods : ( <0> most signatures are <return data>, errorno; <4> Hallo! I have a question... (I a newbie but perl fan!) What's the difference between run 'perl -MCPAN -e shell' at user account and run it order at root account... I had a UNIX station and need to install two modules... but if I attempt it from my account, my PC says 'You need run this command from root'. Why?. Now my root-user are ****ing with your wife and he kill me if I call to him... <4> :P <5> hola <2> Hi! <6> hi <5> say if i have a scalar that im treating as a string, how can i extract single char's from it? <6> nachos - that almost always means you're doing the wrong thing <7> eep!!!!!! <6> I've been hacking Perl for 20 years, never needed "single chars" <7> is Perl really that old? <7> wow. <2> Same here, minus the 20 years part.. <6> what are you *really* trying to do? <2> Heh. <1> Teratogen: barely ;) <6> well - 19 years <7> merlyn you are showing your age, man <7> =) <7> oh btw I turned 49 recently =D <6> Teratogen - still have that jeep? <7> yep <5> read in a file and count the occourences of each charachter. <8> old people... weird <6> cool <7> got a recent pic of it <8> i didn't know old people know how to program <6> we gotta go out in the desert soon <6> maybe we can drive up to havasu :) <8> that's what tr is for <6> yeah - count each char = tr/// <7> sure <8> perldoc -q count <7> the doors are off right now <2> Hmm.. substitute all non-(Specific character) characters out and check the length? <8> riczho: brilliant. <2> Or.. there might be an easier way. <6> -- tr/GoodChars//d <6> -- length $_ <8> very evil. <6> very? <8> yes <2> Oh-- that was the easy way.. nice.
<8> sigh. read the perldoc <6> some number of hours from now.. under 8 <8> don't get aids. <7> there's a great bit in The 40 Year Old Virgin about going to see a woman ****ing a horse in Tijuana <7> haha <7> funny movie <5> hurm <9> wwoooooohooooo: tonight's funny quote from ##php: <afaik> asdx, use <script language="php"> <10> LMAO. <1> it would be an improvement ;) <11> merlyn: Tijuana is awesomely fun. <9> they guy was recommending it to a newb just to piss off the channel op <12> :) <9> the funniest thing is, it works. <7> Steve Carrell is awesomely funny. <2> Hehe. <9> the guys in #apache are considering putting it in the documentation <6> I have been to TJ about 100 times <6> maybe more like 30, but it feels like 100 <11> It's the tequila. <6> Actually, except for Margaritas - I've never had tequila there <6> No wait... did shots a few times. <6> But in general, not a big shots guy <11> The last time I went was with, ironicly, as a chaparone for a church youth group. I took my 5 18-year-olds and we got so ****ing plastered. <11> (They said I couldn't be a chaparone anymore) <6> no kidding <11> Bah. I kept them out of trouble. <11> They didn't buy my line about Jesus obviously being sloshed half the time. I mean, dude, he turned barrels of water into WINE. <13> How can this: splice(@poss, $r, 1); give: Use of uninitialized value in concatenation (.) or string at ... ? :| <9> GumbyBRAIN: you're not a man until you've spent a night in a tijuana jail <14> The man of the night. <13> Directly above it I'm using $poss[$r] fine with no errors, but it still complains there :\ <15> hi <5> hurm... see what im really trying to do is count each char in a stream and for each individual char maintain a counter, incrementing each time the char is found again. <7> the smell of tequila makes me want to puke <5> can anyone point me to some manpages or some tut's? <7> I can point you to some teats <7> err, tits <5> heh <8> my %char_counts; $char_counts{$_}++ for split // <15> bye <5> thanks sili_ <16> Om: Isn't that the same as delete? <1> b0at: delete doesn't "work" on arrays ;) <16> Boggle. <1> It actually works just fine, it just doesn't do what anyone thinks it does <1> It returns that slot in the array to the state that it would have had if nothing was ever put in it, which is very slightly different from containing an undef <1> it does _not_ move the following items back a space <5> sili_: I dont understand how that code snippet works, if split returns an array, wouldnt the loop only complete once? <13> Why would it be complaining about an uninitalized value though? <1> Om: it isn't <16> Oh yeah <1> Om: that line couldn't possibly be responsible for that message :) <13> Hm, I thought I'd already tried without the splice.. :\ But it still errors somewhere else instead, sorry <4> Good nite and good luck! <17> is it bad to do "make -j3 test" ? <18> know of any modules for decision trees? <1> AI::DecisionTree? ;) <18> jesus christo <19> ask and CPAN will provide :) <18> sorry. I just filled my shorts with gentleman's relish. <20> having reference to the flat list, how do I make copy of the list , and make referece point to the copy ? <18> is there a difference between a decision tree and a neural net? <18> anyone? anyone? <18> (everyone in #ai is dead) <18> I mean, isn't a decision tree essentially a feed-forward neural net? <20> i didn't eat since yeasterday <20> can anybody feed me forward ? <20> having reference to the flat list, how do I make copy of the list , and make referece point to the copy ? <20> jrsims: if #ai is dead, you're busted <16> An array reference? <20> b0at: yes <20> i vaguely remeber reading something about deep copy, but i dont remember where and what
Return to
#perl or Go to some related
logs:
ProN00b #linux #perl #fluxbox #suse xsublim ubuntu xten fedora +libstdc++ #ai #linux making directory perl
|
|