| LeoNerd | Try push @{ $obj->{folder} }, 'test'; |
| hobbs | also naming it $obj is bound to confuse, but that's not a syntax error :) |
| LeoNerd | $thing :) |
| somian | It's a BAAAAAD Practice Seinfeld Coding-- |
| action | avar discovers Perl lectures on google video |
| avar | discovers Perl lectures on google video |
| hobbs | Stay away from the chicken! Bad chicken! Mess you up. |
| quangle | it worked. thanks. Didn't know to use braces, tried to do it with brakets at first... |
| somian | perldoc perlref <-- quangle |
| quangle | also $obj was just a generic example, of a more complicated piece of code :) |
| hobbs | better yet, perlreftut for the gentle-but-awesome intro |
| avar | GumbyBRAIN: $dong is the canonical name |
| GumbyBRAIN | One is the work for canonical. |
| avar | It would be neat to have different approaches to perldoc like "know java? this is how our objects differ" or an explanation of data structures by how they're implemented at the C level.. |
| action | somian finds another example of "/usr/etc" and oogles |
| somian | finds another example of "/usr/etc" and oogles |
| hobbs | /usr/local/etc is understandable /usr/etc boggles the mind |
| somian | Interestingly, the Google result context seemed to pertain to RPMs too. Coincidence? I think not. |
| action | somian is a Debian bigot elitist and not ashamed of it. |
| somian | is a Debian bigot elitist and not ashamed of it. |
| CaT[tm] | erm. anyone know what this means? The following parameter was passed in the call to DateTime::Set::from_datetimes but was not listed in the validation options: 2007-04-25T00:00:00 |
| locsmif | hmm, suppose i wanted to match a line to a list of regexes, and on a match execute some code, i can imagine looping through a list of qr{..} type things. but, is there nothing like: /regex1/ /regex2/ .... { code } something like a case statement with multiple matches? |
| Limbic_Region | locsmif - why not something like |
| hobbs | /foo/ or /bar/ |
| avar | if (sub { $str =~ $_ && return 1 for @_; 0 }->(@regex)) { ... }? |
| Limbic_Region | for (@compiled_regexes) { $str =~ /$_/ && $code_ref->() } |
| hobbs | and do { code } |
| locsmif | hobbs, hmm, yeah, do-able :) Limbic_Region, well that was what i was looking for an alternative to :P |
| hobbs | locsmif: do is somewhat icky though |
| Khisanth | CaT[tm]: it would mean you are passing extra params that the function isn't expecting |
| locsmif | hobbs, true |