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



Comments:

<0> merlyn: if you play with moose it really helps to hang out on #perl6 (where you can bug stevan about the vagaries of his implementation :-)
<0> cfedde: just like linux wrt unix :)
<1> PerlJam: also true
<2> what's Moose?
<1> beerboybeeerboy: see also my pasted url above.
<0> beerboybeeerboy: It's a big hairy animal with antlers.
<2> where?
<1> a moose is a horse designed by a comitee
<3> fastest way of getting the fraction digit count?
<2> found it
<1> committee
<0> cfedde: those 8th graders from the national spelling bee would have smoked you easy ;-)
<1> PerlJam: I was failing spelling bees by second grade.
<4> DoctorMO: huh?
<3> Paladin`: 23.56 = 2, 5.9999 = 4 ect ect
<5> what is wrong with that: while ($_ = <STDIN>) {



<6> Is splice'ing out of an array during a for loop safe? For both for(@array) and for (0..$#array) ?
<4> DoctorMO: split and length
<6> igorsutton, it should just be while (<>) {
<0> DoctorMO: why do you care how many decimal places there are?
<4> jsn: did you read the docs on for? it says specifically that it isn't
<7> nope - it's not
<6> I wouldn't do it, I'm reading it in someone else's code. grumble
<7> if you need to do that, use grep or map to transform and select the list
<6> merci beaucoup
<4> jsn: welcome
<7> or a niblling loop
<3> PerlJam: Playing around
<5> jsn: hrm, it is not working.
<5> either while (<>) or while ($_ = <STDIN>)
<7> my @output; while (@input) { my $item = shift @input; ... maybe push @output, function_of_($item) }
<7> that kind of nibller
<7> or my @output = map { something with $_ } @input;
<7> however, with the nibler, you can grab additional items if needed.
<5> merlyn: wasn't while ($_ = <STDIN>) supposed to be right? am i missing something here?
<7> it's a nice pattern.
<7> while ($_ = <STDIN>) broke in old perl
<7> now it implies while (defined ($_ = <STDIN>)) { ... }
<7> with the defined, it works right always
<5> ah, ok
<5> Modification of a read-only value attempted at remember.pl line 55.
<5> while (defined($_ = <STDIN>)) {
<8> "rindolf" at 88.152.115.112 pasted "Ruby and methods ending with !" (13 lines, 269B) at http://sial.org/pbot/17535
<5> that's the line.
<7> you probably have some other value in $_
<7> from a read only value :)
<7> Ahh! also keep in mind that "line 110" means "the statement starting at line 110"
<7> so the problem could be later
<6> It's not a complicated check, a map works nicely.
<5> merlyn: bah, it is defined inside a foreach... damn :)
<9> Is CGI.pm's default behavior to use GET variables?
<10> Seems like there isn't a default behaviour for modules ending with ! in Ruby ( http://sial.org/pbot/17535 ). It's just a convention. We discussed it earlier.
<10> Hi tag_
<11> hello - how can I get a Perl script to set an environment variable running ActiveState Perl on Windows XP?
<11> using $ENV doesn't seem to work.
<12> you can't set an environment variable in the parent process
<13> can't do it.
<11> i was afraid that'd be the answer.
<14> that's not entirely true
<11> my hack is to have the perl script create a temporary .BAT file and then invoke that .BAT file from the parent..
<11> but that's uglier than I'd like...
<11> Limbic_Region: another idea...?
<14> jgarbers - that's the way I was thinking of
<11> great minds, and all that ;-)
<14> batch files don't actually execute as a child process and can indeed affect the parent environment
<14> unfortunately, perl itself can not
<14> that is not a limitation of Perl
<14> but of the OS
<15> why would Net::Ping fail when ping itself works
<14> VMS is about the only OS I know of that the child can affect the parent
<11> figured as much. the hack will do... thanks, everybody
<14> _sho_ - I think there is something in TFM about that
<14> permissions IIRC
<14> the native executable is set up appropriately where as perl has to open the socket itself - and the OS doesn't like it
<14> there is also a work around in TFM - IIRC



<10> Hi Limbic_Region
<16> jgarbers: You want to set the system environment, not the user %ENV?
<11> honestly i'm not sure *which* - but i'm invoking the perl script in a batch file to extract a string from a file... i need the batch file to be able to use that string.
<14> salutations rindolf
<15> Limbic_Region, theres commentary about it needing to be set root, but i am root, and it still dont work :p
<15> ima try net::ping::external
<14> _sho_ - define doesn't work
<14> perlbot doesn't work
<17> What do you mean it doesn't work? What happens when you try to run it? What's the output? What's the error message? What did you expect to happen? We need more information to help you.
<15> it doesnt ping
<16> there's a whole crapload of that in "Win32 Perl Scripting" by Dave Roth. Wish I could look that stuff up but I must run to a meeting...
<16> sys and user env stuff
<11> ology: i will let the meeting p*** through me and when it is over only i will be left.
<11> or something like that.
<18> hello - if I re-run my program which uses Sockets::INET immediately after a previous instance on the same port, it can't open sockets. Any way around this?
<16> jgarbers++
<6> karma jsn
<6> !karma jsn
<6> perlbot karma jsn
<17> Karma for jsn: 3
<14> perlbot karma for jsn
<17> Karma for jsn: 3
<6> I am out of balance!
<14> perlbot karma for Limbic_Region
<17> Karma for Limbic_Region: 15
<14> wow
<15> Limbic_Region, i dont see anything relevant in perlmonks search about net::ping
<14> I am a multiple of jsn
<6> I should spend karma like I have a 3 karma hole burning in my pocket.
<14> _sho_ - it was security related problems
<14> if you are root - then I know not what your problem is
<10> perlbot: karma rindolf
<17> Karma for rindolf: 15
<10> Limbic_Region: we're Karma buddies!
<10> Or Karma peers.
<11> but not Karma chameleons.
<19> freezing off a wart with canned air hurts
<14> simcop2387-zauru the one and only time I had a wart - I bit it off (and a chunk of my hand too)
<19> jgarbers i hate you
<11> simcop2387-zauru: really sorry about that one. it just slipped out.
<19> limbic you can get them on your lips like that
<19> heh
<19> gumbybrain: chameloeon
<20> I have the different processes to interact with multiple lines and do things. At the moment.
<19> bingos hes spawning multiple copies of himself again
<12> buubot, karma chameleon?
<19> Gumbybrain: karma chameleon
<20> Perlbot karma chameleon.
<17> Karma for chameleon: 2
<19> lol
<6> I am 150% of chameleon!
<19> or one more
<15> cool, net::ping::external works fine. thanks guys
<19> damn it i cant get that song out of my head now
<19> gumbybrain head song
<20> Just send me a song.
<10> Great, blogger.com captcha does not display the image.
<19> lol
<19> gumbybrain why so blue panda bear
<20> So double-check the return value, which is why you keep saying i have a bear.
<10> Now it does.
<19> gumbybrain: you are a bouquet of manliness
<20> "you are of the sea by reason of her fornication.
<19> ha
<19> gumbybrain: inhalant abuse is illegal and can cause permanent injury or be fatal. pleause use our product responsibly
<20> Or you get drunk and had a permanent connection, what happened?
<6> So, did compressed air work?
<19> so far it looks dead just gotta wait and see if it all falls off
<19> ill take a picture tonight of it
<6> too many graphics (corollary of too much information)
<19> its not bad looking mostly


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

my google interview
gaim windows live server url
madwifi in ubuntu 6.10
#css
#kde
ubuntu NForce4 suspend to disk
hp quickplay mbr
ubuntu hda microphone
#php
#python



Home  |  disclaimer  |  contact  |  submit quotes