| |
| |
| |
|
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
Comments:
<0> i think there is lot of differenct between PHP and Perl functions <1> i thank god for the differences between php and perl at least twice a day <2> mod_perl OR CGI I think, not both <2> mason is certainly one good web app platform <3> i saw also nice framework called Catalyst but i suppose i can use Mason with it as a view tier <2> i've heard so, but not done it <3> nice thing is CGI::Ajax, are there any other ways to facilitate the use of Ajax ? <4> interesting is CPAN search for 'Ajax' <5> cpan: Ajax <3> :) <3> sorry <6> perlbot search ajax <7> Search results for 'ajax' can be found here: http://xrl.us/nuzc <3> thanks <8> perlbot: search simcop2387 <7> Search results for 'simcop2387' can be found here: http://xrl.us/nuze
<8> That's a great new nick for you, "nuze". <9> if I do $kernel->post($session->ID, 'doLog', dclone(\%totals)); that will post a hashref of a deep copy of %totals right or will the hash not get stored in memory by perl doing that? <6> Yaakov: what? <10> hello! <8> HELLO <8> 03|06:27:13 < perlbot> Search results for 'simcop2387' can be found here: <8> http://xrl.us/nuze <8> "nuze" <10> I read it :) <6> ah <6> Yaakov: don't you hate insomnia? <6> well time to try sleep again <10> 'nite <11> Is is possible to take a slice of an arrayref? <10> why wouldn't it be? <10> @{$ref}[1..5] <11> Botje: **without any sigils <12> well you're always going to need sigils :P <11> dec: you sure? <10> @{[1..5]}[1..3] <10> but that's rather awkward imo <11> my $a = [qw(b c)] <12> If you're doing that, wouldn't it be easier to juse use [2..4] ? <11> there's no way at all to take a slice of that array ref without sigil? <10> rutski89: what sigil are you talking about? <13> row: as I understand dclone() it returns a reference, so your doLog event should receive the cloned reference in ARG0 <11> Botje: the @ in @{$ref}[1..5] <11> eval: my $a = [qw(a b c)]; $a->[0..2] <14> rutski89: b <11> see my point? <11> is there anyway to get it to work in the way I attempted? <12> you cannot do it that way, rutski89 <11> bleh :( <11> I thought there was supposed to be more than one way to do it <12> ->[] dereferences the arrayref for a single element, not a slice <12> (afaik) <11> apparently :-/ <13> eval: my $a = [qw(a b c)]; [ $a->[0..2] ] <14> BinGOs: ['b'] <10> rutski89: you _HAVE_ to dereference it to take a slice. <13> >:) <12> eval: my $a = [qw(a b c)]; print $a->[$_] for [0..2]; <14> dec: <12> bah <12> eval: my $a = [qw(a b c)]; print $a->[$_] for (0..2); <14> dec: a b c <12> :) <13> f00 <12> no @{}! <10> map $ref->[$_], 1..5 # poor man's array slice. but .. C'MON!! <12> oh yeah, map too :) <11> dude, you rock :D <11> dec: that is :) <12> yay :) <12> me++ <12> hehe <11> :) <10> dec++ # but not the company <12> Botje's map is a better solution if you need an actual list returned. <12> Botje++
<13> eval: $poe_kernel->stop(); $poe_kernel->run(); <14> BinGOs: Error: Can't call method "stop" on an undefined value at (eval 134) line 15. <15> in http://search.cpan.org/~mschilli/Log-Log4perl-1.05/lib/Log/Log4perl/FAQ.pm#Some_module_prints_messages_to_STDERR._How_can_I_funnel_them_to_Log%3A%3ALog4perl%3F I start up my app, and get "Can't locate object method "TIEHANDLE" via package "Trapper", any ideas? <15> brb <16> ghenry's url is at http://xrl.us/nuzi <10> ghenry: didy ou load the Trapper package? <15> Botje: I have tie *STDERR, Trapper; in my top level cl*** <15> but I don't have use Trapper; Doh! <13> "Have you tried switch it off and back on again?" <10> are you from the past? <10> t <10> gah :) <15> sorted. Never bloody "use"'d it <15> ;-) <15> Maybe I should trap STDOUT as well, just to mess things up ;-) <15> heh, cool <17> the special char ? for dbi get quote i think, because i try to create a table named $word[0] and i received an error like syntax error near 'channel' (channel is the value of $word[0]) my script is ok because if i replace the ? by hello, it create the hello table, how to remove this quote, somebody knows please? thanks <10> GAH <10> ****ing spammers on del.icio.us. :( <18> Hi, how do I get Perl to print " to a file? <19> \" <18> Thanks <10> pbie: I don't think you can do that with placeholders tehn <20> How can i get the number of elements in array @foo ? <3> scalar(@foo) <13> evaluate it in a scalar context <13> my $count = @foo; <20> thanks <18> Baloogan_, I'm trying to print HTML into a file... but having trouble <19> redblades: ? <18> Well, how might I go about reading from one file, and printing to another? <18> as in: read from blah.txt and print that to Mah.txt <18> Actually, I might put it in a Scalar, and print it that way <18> But I'm not sure how, so how would I go about putting the contents of a text file into a variable? <10> read? <10> how would you normally read from a filehandle? <21> Hi <21> I've been thinking about the sharing-information-across-websites problem <21> what if I tried to make a plugin for IE and FF? <22> question: I have a long list of constants (think errno.h), which I want to use in different .pm's; what would be a more perlish way to do it than starting to tinker w. m4? <13> Errno.pm <13> core: Errno <14> Errno was added to Perl5.008001 <22> I see (I have /usr/lib/perl/5.8.8/Errno.pm). I think I'll use that for inspiration, then. It works by using subs; is there no way to export constants? <11> Perl code can do "use Digest::SHA qw(sha512_hex);", but is there any equivalent for mod_perl-2 config directives? Or do I have to do some funky stuff in a <Perl></Perl> section <10> jonaskoelker: constants are just subs with a prototype of () :) <11> wait... it wouldn't really be so funky <11> sill... is there a mod_perl-2 way to do it?? <10> rutski89: why bother? <22> Botje: ^_^ fair enough, then... <10> do it in your script. <10> or in your mod-perl-startup.pl <10> that's what it's there for <22> 2nd question: is there any kind of dominant capitalization convention? Should I spell my own cl*** pkgs as 'Keynode' or 'keynode'? <23> CamelCase. <23> So possibly even KeyNode <23> Or maybe Key::Node. Whatever makes sense for your project. <11> Botje: yea, I went with the startup.pl way, I was just curious to see if there was a config directive to do it <23> Maybe Node::Key <22> cue Camel puns? :) <22> s|puns|puns/jokes| <11> Why am I getting "Undefined subroutine &Digest::SHA::sha512_hex"? I do have PerlModule::SHA in httpd.conf. <24> How can I list installed packages in CPAN command line? <13> perlbot: installed <7> To check if something is installed, use perl -MMod::Name -e 1 or see perldoc -q installed <14> Found How do I find which modules are installed on my system? at http://perldoc.perl.org/perlfaq3.html; <24> BinGOs: Thanks. <25> buu: plz to be makink buubot ignore perlbot kthxbye. <10> rutski89: PerlModule::SHA? I find that hard to believe :) <12> PerlModule Digest::SHA ? <26> hi, I should write a parser for search engine . Which language you could recommend for the : "easiness, and speed" . ? Perl or python ? <27> what is the syntax to turn a file handle into an IO::Handle object? like *STDOUT->autoflush(1) (is that it? <28> snow_ru: Neither. The Google API! <29> don't use google, google is evil
Return to
#perl or Go to some related
logs:
banshee ipod waiting for transcoder whoopi + fi-it #sdl #openzaurus ntfs splite #gaim clsql MEDIUMTEXT #physics Xen0n artist use phpeditor in mediawiki
|
|