Home Page   #c  #ruby-lang  #cisco  #mysql  #apache  #javascript  #java  #perl  #php  #openmoko   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#perl

25 December 2007


Total 37 pages. You are browsing page 1/37.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last

--- Log opened Tue Dec 25 00:00:46 2007
00:10 <****> anyone knows more about embedding C code into Perl, I've some theoretical questions
00:10 <****> like what is if I want to use complex structures from Perl in C?
00:10 <****> you write a typemap
00:10 <****> or you use the C api to perl SV/HV/AVs
00:11 <****> mst: could you explain it a bit more, or gimme an url/reference/manual/tutorial where it is explained further?
00:12 <****> 'man perl'
00:12 <****> several are listed.
00:13 <****> there is also the book Embedding and Extending Perl
00:13 <****> perlxs, perlxstut, perlapi, perlguts, perlhack
00:13 <****> perlembed!
00:14 <****> ok
00:14 <****> thank you
00:14 <****> also perlcall
00:14 <****> both relevant, but more for the other embedding direction
00:15 <****> http://www.faqs.org/docs/perl5int/ might be useful as well
00:15 * CPAN upload: Data-Utilities-0.01 by CORNELIS
00:36 <****> nite all
00:49 <****> there was a farmer who had a dog and n! was his name-o. CLAP!, (n-1), (n-2), (n-3) and so on, CLAP, (n-1), (n-2), (n-3) and so on, and n! was his name-o
00:54 <****> O_O
01:00 <****> Merry Christmas all
01:00 <****> Hah. First! :)
01:01 <****> ...for this hour
01:02 <****> Ah, the joys of international channels :)
01:02 <****> xmas tsunami rolling around
01:03 <****> Hi there.
01:03 <****> happy holiday
01:05 <****> ¿There's no other freack like me, with the family at the right and writing on irc? :D
01:06 <****> okay
01:08 <****> I left my family in peace for christmas this year :)
01:08 <****> GumbyBRAIN: merry christmas
01:08 <****> Often when perl "just vanishes" it's because it's from he instead of christmas.
01:11 <****> How can you do a define in perl like you can in php?
01:11 <****> Monie: explain what a define does in PHP ...
01:12 <****> must be operl/php translation day
01:12 <****> must be perl/php translation day
01:12 <****> like, define('FOO', 'BAR'); then in a php script you could do, echo FOO; and it'd show BAR.
01:12 <****> heh
01:12 <****> Monie: ...
01:13 <****> eval: my $foo = 'BAR'; print $foo;
01:13 <****> Zoffix: BAR1
01:13 <****> Monie: that's a bad idea in perl or PHP.
01:13 <****> lol
01:13 <****> Monie: so, -why- do you think you want to do that?
01:13 <****> constants suck...
01:13 <****> and variables wont...
01:13 <****> heh
01:13 <****> hmm
01:13 <****> I found a way
01:13 <****> How would I do an array?
01:14 <****> my @array = (1, 2, 3);
01:14 * Zoffix calls TROLL
01:14 <****> first you have to get the array interested
01:14 <****> Monie: you should pro bably read a tutorial
01:14 <****> push teh button!
01:14 <****> perlbot: perl tutorial
01:14 <****> dammit, wrong word
01:14 <****> GumbyBRAIN, where's teh troll button?
01:14 <****> perlbot: beginning perl
01:14 <****> But none of the troll.
01:14 <****> http://www.perl.org/books/beginning-perl/
01:14 <****> perlbot: learning perl
01:14 <****> 1. "Learning Perl", the Llama Book - http://www.oreilly.com/catalog/learnperl4/ 2. Beginners' Portals - http://learn.perl.org/, http://perl-begin.berlios.de/
01:14 <****> bar); ?
01:15 <****> Monie: that's a hash
01:15 * CPAN upload: Parse-Marpa-0.001_063 by JKEGL
01:15 <****> bar); ?
01:15 <****> and the = 1 part, dunno what that is
01:15 <****> brb
01:16 <****> Monie: PHP doesn't understand the difference between an array and a hash
01:16 <****> no you would use a hash for that see learning perl if you don't see it now look up or scroll up to see the reference that was cited before
01:16 <****> is there an equivalent of a dictionary in perl?
01:17 <****> unix_infidel: that;s a hash
01:17 <****> a hash is like a dictionary
01:17 <****> listing stuff you can't do is no way of learning syntax
01:17 <****> spiffy.
01:17 <****> unix_infidel: my %hash; $hash{'foo'} = 'bar';
01:18 <****> mst: lol.
01:18 <****> well that was a waste of time trying to coordinate values in two lists :-P
01:18 <****> Yes.
01:19 <****> might as well have one list, each item is a pair of things
01:19 <****> unix_infidel: read the tutorial link perlbot just spat out then ...
01:19 <****> aren't associative arrays good for this purpose?
01:19 <****> LOLZ
01:19 <****> erm, isn't associative array a hash?
01:19 * Khisanth beats Bushmills with a hash
01:20 <****> short name for assiciative array: hash
01:20 <****> yes
01:20 <****> the hash sigil should have been # :P
01:20 <****> reading what the bot spits out is like eating what the dog spits out
01:20 <****> still, pair of value
01:20 <****> GumbyBRAIN, what did the dog spit out?
01:20 <****> What did i think they're actually going to the fact that that there was a dog.
01:21 <****> night
01:21 <****> GumbyBRAIN: there was a dog that did spit out... why gumby? why why why??
01:21 <****> Is that it was gumby.
01:21 <****> Bushmills: they have different performance properties to hashes
01:21 <****> Bushmills: they're very nice for iteration, hence the heavy use in lisp
01:22 <****> that I don't call them hashs is because the perl literatur calls them associate arrays
01:22 <****> Bushmills: the two terms are interchangable


Total 37 pages. You are browsing page 1/37.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo