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



Comments:

<0> jdv79: Would you also like to be able to change the index of an element in an array?
<1> that's an ordered list though
<1> i think keys are mutable in C# on collections
<0> The index points to a certain spot. Hash tables are the same.
<2> collections ne hashes
<3> is there a better way to write "if (someting) or (something 2) or (something 3)"?
<0> A hash table is a specific implementation of a dictionary type collection
<1> fine, i'm being forced into going OO
<0> That implementation comes with some tradeoffs
<3> could you write: "if (someting || something || something 3)"?
<1> i was hoping to sideskirt it
<1> :)
<4> csb: yes.
<3> ok so that should work? it wasn't, so i just wanted to make sure it's me, not perl
<4> or: if (something or something or something)
<4> well



<0> csb: Apart from the fact that your first example is invalid Perl syntax =)
<4> what are you doing specifically?
<3> yeah i need another set of ()
<0> jdv79: Use a tied hash? ;)
<5> I am invalid perl syntax.
<2> eval: Yaakov
<6> Botje: Return: Yaakov
<2> Yaakov: lies.
<0> $ perl -ce'Yaakov'
<0> -e syntax OK
<0> Oh dang, Botje beat me to it.
<2> *hug* revdiablo
<5> I didn't say, "My name is invalid perl syntax."
<4> eval: use strict; Yaakov
<6> Elly: Error: Bareword "Yaakov" not allowed while "strict subs" in use at (eval 127) line 1.
<4> Hah.
<7> good night all
<5> DON'T GO!
<4> later all, freelancer
<0> Yaakov: Your name is the only convenient way we can embody you
<8> can you p*** file handles to a function?
<7> ubuh-huntuh: by reference, duh.
<5> revdiablo: Not everything that is invalid perl syntax is convenient.
<7> it's even easier if you're using "lexical" "filehandles"
<1> revdiablo: i was using RefHash but i have occasion to alter the keys
<5> This ISN'T php!
<7> jdv79: your objects have mutable primary keys?!
<5> I am a mutable primary key.
<1> uhm, my mutable keys are my objects
<1> if they were mutable
<7> yes, but objects are a reference type.
<0> Yaakov: I am confused! I have half a mind to start piping in megahal responses.
<2> jdv79: well .. if they're objects ..
<2> but still .. :p
<9> GumbyBRAIN: mutable primary keys.
<10> ew73: Latrobe, one of those, it is good.. But you cant live here - and i grew angry and cursed, with the keys of the fall of the village, followed the chief to the primary key of the builtin localtime function? Is it possible that you could prove it your self.
<7> *Sigh* it all boils down to mutable value types.
<1> sounds like it does
<7> jdv79: the thing the hash is really keyed upon is mutable?
<1> let me guess - its different in p6
<0> I think so
<7> hmm, I think perl6 just ***umed that the .hash method or whatever means is used to get the hash value doesn't change
<0> IIRC, Hashes in perl6 are a bunch of pair objects
<1> the keys are Path::Cl*** objects
<11> GumbyBRAIN: mutablabbering
<10> Prof_Vince: An excited and highly respectable company at once started to the duck, and like to see what you want par ([y.
<7> I mean, anything else and you don't have a hash containing objects, you have a collection of objects with a secondary index, which I think looks totally different
<12> how can i post chkBox=210&chkBox=116&chkBox=234 with $ua->post()? can't have three hash items with the same name can i?
<1> but most of the cl***es method return a new changed obj and don't operate on the invocant:(
<2> rixxon: sure you can.
<7> rixxon: notice that you can p*** an array ref not a hash ref
<2> the secret word is "arrayref"
<12> $ua->post( '...', { chkBox => [ '210', '116', '234' ] } ) then?
<2> TIAS
<12> can't, ipbased
<7> no, not really like that *sigh*
<12> i get one shot :<
<7> rixxon: "ipbased" is not a word.
<12> i just invented it, duh
<12> sleep tight



<12> so err, if that's wrong, then how the .. am i supposed to do it
<5> TNX IN ADVANCE
<2> wb Ikarus, did you see jeff waugh's talk?
<5> I'LL GIVE A TALK
<2> ON FOOD?
<5> I don't know.
<2> :(
<5> Botje: Come to YAPC.
<2> if i find a ****^Wsponsor for my plane ticket and hotel
<2> and food
<2> and drink
<2> and other non-perl-related necessities
<13> rixxon: just remember that arrays and hashes can't contain non-scalars
<13> rixxon: easy rule of thumb
<5> Botje: Take up a collection locally and point out you will be GONE for several days.
<2> how will that help? EVERYONE LOVES ME :[
<5> SILK PETARD
<12> avar: which is why i made an anonymous array
<3> i know that if you declare a var (sing strict) within a block, it's not valid outside that block. so what is the best way to handle vars you create in an if...then statement? i.e. "if $var="true" {my $var2 = false}"? is the best way just to declare the variable outside the loop?
<13> rixxon: exactly
<2> csb: it's the only way :)
<5> csb: Don't think "declare", think "scope".
<5> csb: You scope your variables so that they will be accessible to whatever needs them.
<12> avar: i fail to understand
<13> rixxon: there's no way for an array to contain another array
<13> or a hash
<13> and likewise for hashes
<14> hey avar
<13> It's good to remember this if you need to understand perl datastructures
<12> avar: sure a hash can contain a arrayref (or in this case an anon array)
<12> avar: have you not read perlref?
<13> yes, but that's an *array reference*
<13> not an array
<13> and array references are scalars
<12> i know
<13> then what's your point?
<12> i just thought as post() takes a hashref, maybe it reads arrayrefs in the hashref
<15> rixxon: and _why_ would you think that?
<12> why not
<16> man i need to learn more about procmail
<15> rixxon: because when you make up random **** that doesn't bear any relation to what the software says it does, it usually doesn't work.
<16> perl has a post()?
<12> LWP::UserAgent has
<16> ah
<13> hobbs: haha
<12> hobbs: the docs doesn't really explain how to post three different values to the same item, item=x&item=y&item=z to say it in http
<16> boy i need to setup an automatic archiving system for my imap folders
<12> afaik i can't have like { item => 'x', item => 'y }
<2> time to rtfs :)
<13> rixxon: wtf?
<13> you can't do that
<12> exactly
<15> rixxon: actually it pretty much does, you just have to apply a tiny bit of common sense
<13> because post values have to be unique
<15> rixxon: As you were told 10 minutes ago, IT TAKES AN ARRAY REF TOO
<12> avar: well this website aint following the standards
<15> avar: no they don't, actually
<13> whatwhatwhat!
<12> firefox has no problem with that
<16> GumbyBRAIN: post
<10> simcop2387: [02:22] <Deebs> please post a public vault.
<12> hobbs: and how, in an array, do you define the item name?
<16> rixxon: arrays don't have item names
<15> rixxon: eh.
<16> rixxon: they have indexes and elements
<13> rixxon: my making it the value part of a hash key/value ?
<15> rixxon: it specifically says it's an array of key/value pairs
<15> rixxon: key. value. key. value. key. value.
<16> hobbs: ah so a flattened hash, not a hashref
<12> aha, thank you dears. :)
<15> rixxon: like a flattened hash.


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

gentoo chroot :cannot run command /bin/bash Exec format error
#gentoo
#linux
kernel panic debian 432 vmware
networkslime setup
#python
No rule to make target libConfig.pm
howto disable susefirewall
#perl
Gedit python raw_input help



Home  |  disclaimer  |  contact  |  submit quotes